文档

参数取值本地化

更新时间:

资源编排服务ROS(Resource Orchestration Service)支持对参数取值进行本地化,根据控制台语言环境将参数取值翻译为对应的语言。目前支持本地化的语言有中文和英文。

模板语法

您可以参考以下格式定义参数,在LocaleKey中定义本地化键索引,在AllowedValues中定义参数取值列表,从而在控制台实现根据语言呈现取值列表的显示效果。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ECSInternetChargeType:
    Type: String
    AllowedValues:
      - PayByBandwidth
      - PayByTraffic
    AssociationPropertyMetadata:
      LocaleKey: InternetChargeType

中文控制台显示效果:

zh

英文控制台显示效果:

en

参数取值列表

下表为您列出参数的取值列表和示例,参数值的中文含义以ROS中文控制台实际显示为准。

参数本地化键索引参数值示例
包年包月周期PricingCycle
  • Week
  • week
  • Month
  • month
  • Year
  • year
ECSPeriodUnit:
  Type: String
  AllowedValues:
    - Week
    - Month
    - Year
  AssociationPropertyMetadata:
    LocaleKey: PricingCycle
付费模式InstanceChargeType
  • PostPaid
  • Postpaid
  • PayOnDemand
  • PayAsYouGo
  • POSTPAY
  • PrePaid
  • Prepaid
  • PrePay
  • Subscription
  • PREPAY
ECSInstanceChargeType:
  Type: String
  AllowedValues:
    - PostPaid
    - PrePaid
  AssociationPropertyMetadata:
    LocaleKey: InstanceChargeType
带宽计费方式InternetChargeType
  • PayByBandwidth
  • paybybandwidth
  • PayBySpec
  • PayByTraffic
  • paybytraffic
  • PayByLcu
ECSInternetChargeType:
  Type: String
  AllowedValues:
    - PayByBandwidth
    - PayByTraffic
  AssociationPropertyMetadata:
    LocaleKey: InternetChargeType
网络类型NetType
  • Intranet
  • Internet
  • privatenet
  • pubnet
ECSInstanceNetType:
  Type: String
  AllowedValues:
    - Intranet
    - Internet
  AssociationPropertyMetadata:
    LocaleKey: NetType
NAT网关的规格NatGatewaySpec
  • Small
  • Middle
  • Large
  • XLarge.1
NatGatewaySpec:
  Type: String
  AllowedValues:
    - Small
    - Middle
    - Large
    - XLarge.1
  AssociationPropertyMetadata:
    LocaleKey: NatGatewaySpec
布尔类型的参数ParameterBoolean
  • True
  • true
  • False
  • false
  • on
  • off
  • ConsoleProtection
  • NonProtection
  • Enable
  • Disabled
  • Enabled
ECSAutoRenew:
  Type: String
  AllowedValues:
    - 'true'
    - 'false'
  AssociationPropertyMetadata:
    LocaleKey: ParameterBoolean
实例的竞价策略InstanceSpotStrategy
  • Spot
  • NoSpot
  • SpotWithPriceLimit
  • SpotAsPriceGo
ECSSpotStrategy:
  Type: String
  AllowedValues:
    - Spot
    - NoSpot
  AssociationPropertyMetadata:
    LocaleKey: InstanceSpotStrategy
实例的网络类型InstanceNetworkType
  • vpc
  • VPC
  • classic
  • CLASSIC
  • Classic
RDSNetworkType:
  Type: String
  AllowedValues:
    - VPC
    - CLASSIC
  AssociationPropertyMetadata:
    LocaleKey: InstanceNetworkType
ECS是否启用安全加固ECSSecurityEnhancementStrategy
  • Active
  • Deactive
ECSSecurityEnhancementStrategy:
  Type: String
  AllowedValues:
    - Active
    - Deactive
  AssociationPropertyMetadata:
    LocaleKey: ECSSecurityEnhancementStrategy
ECS抢占式实例的策略ECSTargetCapacity
  • lowest-price
  • diversified
ECSTargetCapacity:
  Type: String
  AllowedValues:
    - lowest-price
    - diversified
  AssociationPropertyMetadata:
    LocaleKey: ECSTargetCapacity
ECS停止超额抢占式实例后的下一步动作ECSSpotInstanceInterruptionBehavior
  • stop
  • terminate
ECSSpotInstanceInterruptionBehavior:
  Type: String
  AllowedValues:
    - stop
    - terminate
  AssociationPropertyMetadata:
    LocaleKey: ECSSpotInstanceInterruptionBehavior
ECS命令的类型ECSCommandType
  • RunBatScript
  • RunShellScript
ECSCommandType:
  Type: String
  AllowedValues:
    - RunBatScript
    - RunPowerShellScript
    - RunShellScript
  AssociationPropertyMetadata:
    LocaleKey: ECSCommandType
ECS弹性供应组的交付类型ECSAutoProvisioningGroupType
  • request
  • maintain
ECSAutoProvisioningGroupType:
  Type: String
  AllowedValues:
    - request
    - maintain
  AssociationPropertyMetadata:
    LocaleKey: ECSAutoProvisioningGroupType
ECS部署集内实例宕机迁移后,缺乏可供打散的实例库存的紧急处理方案ECSOnUnableToRedeployFailedInstance
  • CancelMembershipAndStart
  • KeepStopped
ECSOnUnableToRedeployFailedInstance:
  Type: String
  AllowedValues:
    - CancelMembershipAndStart
    - KeepStopped
  AssociationPropertyMetadata:
    LocaleKey: ECSOnUnableToRedeployFailedInstance
NAS存储类型NasStorageType
  • Performance
  • Capacity
  • standard
  • advance
NasStorageType:
  Type: String
  AllowedValues:
    - Performance
    - Capacity
  AssociationPropertyMetadata:
    LocaleKey: NasStorageType
NAS文件系统类型NasFileSystemType
  • standard
  • extreme
  • cpfs
NasFileSystemType:
  Type: String
  AllowedValues:
    - standard
    - extreme
    - cpfs
  AssociationPropertyMetadata:
    LocaleKey: NasFileSystemType
云盘的性能等级DiskPerformanceLevel
  • PL0
  • PL1
  • PL2
  • PL3
DiskPerformanceLevel:
  Type: String
  AllowedValues:
    - PL0
    - PL1
    - PL2
    - PL3
  AssociationPropertyMetadata:
    LocaleKey: DiskPerformanceLevel
SLB克隆策略SlbBackendServersPolicy
  • clone
  • empty
  • append
  • replace
SlbBackendServersPolicy:
  Type: String
  AllowedValues:
    - clone
    - empty
    - append
    - replace
  AssociationPropertyMetadata:
    LocaleKey: SlbBackendServersPolicy
SLB后端服务器类型SlbBackendServersType
  • ecs
  • eni
  • eci
SlbBackendServersType:
  Type: String
  AllowedValues:
    - ecs
    - eni
    - eci
  AssociationPropertyMetadata:
    LocaleKey: SlbBackendServersType
EIP线路类型EIPIsp
  • BGP
  • BGP_PRO
  • ChinaTelecom
  • ChinaUnicom
  • ChinaMobile
  • BGP_FinanceCloud
EIPIsp:
  Type: String
  AllowedValues:
    - BGP
    - BGP_PRO
    - ChinaTelecom
    - ChinaUnicom
    - ChinaMobile
    - BGP_FinanceCloud
  AssociationPropertyMetadata:
    LocaleKey: EIPIsp
EIP绑定模式EIPAssociationMode
  • NAT
  • MULTI_BINDED
  • BINDED
EIPAssociationMode:
  Type: String
  AllowedValues:
    - NAT
    - MULTI_BINDED
    - BINDED
  AssociationPropertyMetadata:
  LocaleKey: EIPAssociationMode
EIPSegment网络类型EIPSegmentNetmode
  • public
  • hybrid
EIPSegmentNetmode:
  Type: String
  AllowedValues:
    - public
    - hybrid
  AssociationPropertyMetadata:
    LocaleKey: EIPSegmentNetmode
FlowLog要捕获流量的资源类型FlowLogResourceType
  • NetworkInterface
  • vSwitch
  • VPC
FlowLogResourceType:
  Type: String
  AllowedValues:
    - NetworkInterface
    - vSwitch
    - VPC
   AssociationPropertyMetadata:
   LocaleKey: FlowLogResourceType
FlowLog采集的流量类型FlowLogTrafficType
  • All
  • Allow
  • Drop
FlowLogTrafficType:
  Type: String
  AllowedValues:
    - All
    - Allow
    - Drop
  AssociationPropertyMetadata:
    LocaleKey: FlowLogTrafficType
GrantInstanceToCen网络实例类型GrantInstanceToCenInstanceType
  • VPC
  • VBR
  • CCN
GrantInstanceToCenInstanceType:
  Type: String
  AllowedValues:
    - VPC
    - VBR
    - CCN
  AssociationPropertyMetadata:
    LocaleKey: GrantInstanceToCenInstanceType
NAT网关的类型NatType
  • Normal
  • Enhanced
NatType:
  Type: String
  AllowedValues:
    - Normal
    - Enhanced
  AssociationPropertyMetadata:
    LocaleKey: NatType
RouterInterface所属的路由器类型RouterType
  • VRouter
  • VBR
RouterType:
  Type: String
  AllowedValues:
    - VRouter
    - VBR
  AssociationPropertyMetadata:
    LocaleKey: RouterType
RDS账号类型RDSAccountType
  • Normal
  • Super
  • Sysadmin
RDSAccountType:
  Type: String
  AllowedValues:
    - Normal
    - Super
    - Sysadmin
  AssociationPropertyMetadata:
    LocaleKey: RDSAccountType
RDS账号权限RDSAccountPrivilege
  • ReadWrite
  • ReadOnly
  • DDLOnly
  • DMLOnly
  • DBOwner
RDSAccountPrivilege:
  Type: String
  AllowedValues:
    - ReadWrite
    - ReadOnly
    - DDLOnly
    - DMLOnly
  AssociationPropertyMetadata:
    LocaleKey: RDSAccountPrivilege
RDS实例连接地址的类型RDSConnectionStringType
  • Inner
  • Public
RDSConnectionStringType:
  Type: String
  AllowedValues:
    - Inner
    - Public
  AssociationPropertyMetadata:
    LocaleKey: RDSConnectionStringType
RDS实例系列RDSCategory
  • Basic
  • HighAvailability
  • AlwaysOn
  • Finance
RDSCategory:
  Type: String
  AllowedValues:
    - Basic
    - HighAvailability
    - AlwaysOn
    - Finance
  AssociationPropertyMetadata:
    LocaleKey: RDSCategory
RDS数据库的连接模式RDSConnectionMode
  • Standard
  • Safe
RDSConnectionMode:
  Type: String
  AllowedValues:
    - Standard
    - Safe
  AssociationPropertyMetadata:
    LocaleKey: RDSConnectionMode
RDS数据库备份类型RDSBackupPolicyMode
  • DataBackupPolicy
  • LogBackupPolicy
  • FullBackup
  • IncrementalBackup
RDSBackupPolicyMode:
  Type: String
  AllowedValues:
    - FullBackup
    - IncrementalBackup
  AssociationPropertyMetadata:
    LocaleKey: RDSBackupPolicyMode
RDS数据是否启用二级备份功能RDSBackUpCategory
  • Flash
  • Standard
RDSBackUpCategory:
  Type: String
  AllowedValues:
    - Flash
    - Standard
  AssociationPropertyMetadata:
    LocaleKey: RDSBackUpCategory
RDS数据库释放后的归档备份保留策略RDSReleasedKeepPolicy
  • Lastest
  • All
RDSReleasedKeepPolicy:
  Type: String
  AllowedValues:
    - Lastest
    - All
  AssociationPropertyMetadata:
    LocaleKey: RDSReleasedKeepPolicy
RDS实例的安全套接层(SSL)链接设置RDSSSLSetting
  • Disabled
  • EnabledForPublicConnection
  • EnabledForInnerConnection
RDSSSLSetting:
  Type: String
  AllowedValues:
    - Disabled
    - EnabledForPublicConnection
    - EnabledForInnerConnection
  AssociationPropertyMetadata:
    LocaleKey: RDSSSLSetting
Redis账号权限RedisAccountPrivilege
  • RoleReadOnly
  • RoleReadWrite
  • RoleRepl
RedisAccountPrivilege:
  Type: String
  AllowedValues:
    - RoleReadOnly
    - RoleReadWrite
    - RoleRepl
  AssociationPropertyMetadata:
    LocaleKey: RedisAccountPrivilege
Redis数据逐出策略RedisEvictionPolicy
  • noeviction
  • allkeys-lru
  • volatile-lru
  • allkeys-random
  • volatile-random
  • volatile-ttl
RedisEvictionPolicy:
  Type: String
  AllowedValues:
    - noeviction
    - allkeys-lru
    - volatile-lru
    - allkeys-random
    - volatile-random
    - volatile-ttl
  AssociationPropertyMetadata:
    LocaleKey: RedisEvictionPolicy
Redis SSL状态RedisSSLEnabled
  • Disable
  • Enable
  • Update
RedisSSLEnabled:
  Type: String
  AllowedValues:
    - Disable
    - Enable
    - Update
  AssociationPropertyMetadata:
    LocaleKey: RedisSSLEnabled
OSS访问权限OSSAccessControl
  • private
  • public-read
  • public-read-write
OSSAccessControl:
  Type: String
  AllowedValues:
    - private
    - public-read
    - public-read-write
  AssociationPropertyMetadata:
    LocaleKey: OSSAccessControl
OSS存储空间类型OSSStorageClass
  • Standard
  • IA
  • Archive
OSSStorageClass:
  Type: String
  AllowedValues:
    - Standard
    - IA
    - Archive
  AssociationPropertyMetadata:
    LocaleKey: OSSStorageClass
OOS参数的约束条件OOSConstraints
  • AllowedValues
  • AllowedPattern
  • MinLength
  • MaxLength
OOSConstraints:
  Type: String
  AllowedValues:
    - MinLength
    - MaxLength
  AssociationPropertyMetadata:
    LocaleKey: OOSConstraints
MongoDB存储引擎MongoDBStorageEngine
  • WiredTiger
  • RocksDB
  • TerarkDB
MongoDBStorageEngine:
  Type: String
  AllowedValues:
    - WiredTiger
    - RocksDB
    - TerarkDB
  AssociationPropertyMetadata:
    LocaleKey: MongoDBStorageEngine
CEN网络实例的类型CenChildInstanceType
  • VPC
  • VBR
  • CCN
CenChildInstanceType:
  Type: String
  AllowedValues:
    - VPC
    - VBR
    - CCN
  AssociationPropertyMetadata:
    LocaleKey: CenChildInstanceType
CEN网络实例所属的地域CenGeographicRegionId
  • China
  • North-America
  • Asia-Pacific
  • Europe
  • Australia
CenGeographicRegionId:
  Type: String
  AllowedValues:
    - China
    - North-America
    - Asia-Pacific
    - Europe
    - Australia
  AssociationPropertyMetadata:
    LocaleKey: CenGeographicRegionId
CEN路由策略应用的方向CenTransmitDirection
  • RegionIn
  • RegionOut
CenTransmitDirection:
  Type: String
  AllowedValues:
    - RegionIn
    - RegionOut
  AssociationPropertyMetadata:
    LocaleKey: CenTransmitDirection
CEN匹配模式CenMatchMode
  • Include
  • Complete
CenMatchMode:
  Type: String
  AllowedValues:
    - Include
    - Complete
  AssociationPropertyMetadata:
    LocaleKey: CenMatchMode
CEN所有匹配条件通过后的策略行为CenMapResult
  • Permit
  • Deny
CenMapResult:
  Type: String
  AllowedValues:
    - Permit
    - Deny
  AssociationPropertyMetadata:
    LocaleKey: CenMapResult
CEN匹配路由的类型列表CenRouteTypes
  • System
  • Custom
  • BGP
CenRouteTypes:
  Type: String
  AllowedValues:
    - System
    - Custom
    - BGP
  AssociationPropertyMetadata:
    LocaleKey: CenRouteTypes
CEN操作Community的模式CenCommunityOperateMode
  • Additive
  • Replace
CenCommunityOperateMode:
  Type: String
  AllowedValues:
    - Additive
    - Replace
  AssociationPropertyMetadata:
    LocaleKey: CenCommunityOperateMode
CEN路由条目的下一跳类型CenNextHopType
  • BlackHole
  • Attachment
CenNextHopType:
  Type: String
  AllowedValues:
    - BlackHole
    - Attachment
  AssociationPropertyMetadata:
    LocaleKey: CenNextHopType
CS节点CPU管理策略CSCpuPolicy
  • static
  • none
CSCpuPolicy:
  Type: String
  AllowedValues:
    - static
    - none
  AssociationPropertyMetadata:
    LocaleKey: CSCpuPolicy
CS调度策略CSTaintsEffect
  • NoSchedule
  • NoExecute
  • PreferNoSchedule
CSTaintsEffect:
  Type: String
  AllowedValues:
    - NoSchedule
    - NoExecute
    - PreferNoSchedule
  AssociationPropertyMetadata:
    LocaleKey: CSTaintsEffect
自动伸缩类型AutoScalingType
  • cpu
  • gpu
  • gpushare
  • spot
AutoScalingType:
  Type: String
  AllowedValues:
    - cpu
    - gpu
    - gpushare
    - spot
  AssociationPropertyMetadata:
    LocaleKey: AutoScalingType
伸缩组模式ScalingPolicy
  • release
  • recycle
ScalingPolicy:
  Type: String
  AllowedValues:
    - release
    - recycle
  AssociationPropertyMetadata:
    LocaleKey: ScalingPolicy
ESS报警类型 ESSAlarmTaskMetricType
  • system
  • custom
ESSAlarmTaskMetricType:
  Type: String
  AllowedValues:
    - system
    - custom
  AssociationPropertyMetadata:
    LocaleKey: ESSAlarmTaskMetricType
ESS报警统计方法ESSAlarmTaskStatistics
  • Average
  • Minimum
  • Maximum
ESSAlarmTaskStatistics:
  Type: String
  AllowedValues:
    - Average
    - Minimum
    - Maximum
  AssociationPropertyMetadata:
    LocaleKey: ESSAlarmTaskStatistics
ESS生命周期挂钩ESSLifecycleHookDefaultResult
  • CONTINUE
  • ABANDON
ESSLifecycleHookDefaultResult:
  Type: String
  AllowedValues:
    - CONTINUE
    - ABANDON
  AssociationPropertyMetadata:
    LocaleKey: ESSLifecycleHookDefaultResult
ESS生命周期挂钩适用的伸缩活动类型ESSLifecycleHookLifecycleTransition
  • SCALE_OUT
  • SCALE_IN
ESSLifecycleHookLifecycleTransition:
  Type: String
  AllowedValues:
    - SCALE_OUT
    - SCALE_IN
  AssociationPropertyMetadata:
    LocaleKey: ESSLifecycleHookLifecycleTransition
ESS伸缩组弹性收缩活动ESSRemovalPolicys
  • OldestInstance
  • NewestInstance
  • OldestScalingConfiguration
ESSRemovalPolicys:
  Type: String
  AllowedValues:
    - OldestInstance
    - NewestInstance
    - OldestScalingConfiguration
  AssociationPropertyMetadata:
    LocaleKey: ESSRemovalPolicys
ESS多可用区伸缩组ECS实例扩缩容策略ESSMultiAZPolicy
  • PRIORITY
  • BALANCE
  • COST_OPTIMIZED
ESSMultiAZPolicy:
  Type: String
  AllowedValues:
    - PRIORITY
    - BALANCE
    - COST_OPTIMIZED
  AssociationPropertyMetadata:
    LocaleKey: ESSMultiAZPolicy
ESS伸缩规则的调整方式ESSAdjustmentType
  • QuantityChangeInCapacity
  • PercentChangeInCapacity
  • TotalCapacity
ESSAdjustmentType:
  Type: String
  AllowedValues:
    - QuantityChangeInCapacity
    - PercentChangeInCapacity
    - TotalCapacity
  AssociationPropertyMetadata:
    LocaleKey: ESSAdjustmentType
ESS伸缩规则的预定义监控项ESSMetricName
  • CpuUtilization
  • ClassicInternetRx
  • ClassicInternetTx
  • VpcInternetRx
  • VpcInternetTx
  • IntranetRx
  • IntranetTx
ESSMetricName:
  Type: String
  AllowedValues:
    - CpuUtilization
    - ClassicInternetRx
    - ClassicInternetTx
    - VpcInternetRx
    - VpcInternetTx
    - IntranetRx
    - IntranetTx
  AssociationPropertyMetadata:
    LocaleKey: ESSMetricName
ESS伸缩规则类型ESSScalingRuleType
  • SimpleScalingRule
  • TargetTrackingScalingRule
  • StepScalingRule
  • PredictiveScalingRule
ESSScalingRuleType:
  Type: String
  AllowedValues:
    - SimpleScalingRule
    - TargetTrackingScalingRule
    - StepScalingRule
    - PredictiveScalingRule
  AssociationPropertyMetadata:
    LocaleKey: ESSScalingRuleType
ESS预测规则最大值处理方式ESSPredictiveValueBehavior
  • MaxOverridePredictiveValue
  • PredictiveValueOverrideMax
  • PredictiveValueOverrideMaxWithBuffer
ESSPredictiveValueBehavior:
  Type: String
  AllowedValues:
    - MaxOverridePredictiveValue
    - PredictiveValueOverrideMax
    - PredictiveValueOverrideMaxWithBuffer
  AssociationPropertyMetadata:
    LocaleKey: ESSPredictiveValueBehavior
ESS预测规则的模式ESSPredictiveScalingMode
  • PredictAndScale
  • PredictOnly
ESSPredictiveScalingMode:
  Type: String
  AllowedValues:
    - PredictAndScale
    - PredictOnly
  AssociationPropertyMetadata:
    LocaleKey: ESSPredictiveScalingMode
ESS定时任务ESSScheduledTaskRecurrenceType
  • Daily
  • Weekly
  • Monthly
  • Cron
ESSScheduledTaskRecurrenceType:
  Type: String
  AllowedValues:
    - Daily
    - Weekly
    - Monthly
    - Cron
  AssociationPropertyMetadata:
    LocaleKey: ESSScheduledTaskRecurrenceType
ECS自定义路由下一跳的类型ECSRouteNextHopType
  • Instance
  • HaVip
  • RouterInterface
  • NetworkInterface
  • VpnGateway
  • IPv6Gateway
  • NatGateway
  • Attachment
ECSRouteNextHopType:
  Type: String
  AllowedValues:
    - Instance
    - HaVip
    - RouterInterface
    - NetworkInterface
    - VpnGateway
    - IPv6Gateway
    - NatGateway
    - Attachment
  AssociationPropertyMetadata:
    LocaleKey: ECSRouteNextHopType
  • 本页导读 (1)
文档反馈