文档

参数取值本地化

更新时间:

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

模板语法

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

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

中文控制台显示效果:

zh

英文控制台显示效果:

en

参数取值列表

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

参数

本地化键索引

参数值

示例

自动伸缩类型

AutoScalingType

  • cpu

  • gpu

  • gpushare

  • spot

AutoScalingType:
  Type: String
  AllowedValues:
    - cpu
    - gpu
    - gpushare
    - spot
  AssociationPropertyMetadata:
    LocaleKey: AutoScalingType

CEN网络实例的类型

CenChildInstanceType

  • VPC

  • VBR

  • CCN

CenChildInstanceType:
  Type: String
  AllowedValues:
    - VPC
    - VBR
    - CCN
  AssociationPropertyMetadata:
    LocaleKey: CenChildInstanceType

CEN操作Community的模式

CenCommunityOperateMode

  • Additive

  • Replace

CenCommunityOperateMode:
  Type: String
  AllowedValues:
    - Additive
    - Replace
  AssociationPropertyMetadata:
    LocaleKey: CenCommunityOperateMode

CEN网络实例所属的地域

CenGeographicRegionId

  • China

  • North-America

  • Asia-Pacific

  • Europe

CenGeographicRegionId:
  Type: String
  AllowedValues:
    - China
    - North-America
    - Asia-Pacific
    - Europe
  AssociationPropertyMetadata:
    LocaleKey: CenGeographicRegionId

CEN所有匹配条件通过后的策略行为

CenMapResult

  • Permit

  • Deny

CenMapResult:
  Type: String
  AllowedValues:
    - Permit
    - Deny
  AssociationPropertyMetadata:
    LocaleKey: CenMapResult

CEN匹配模式

CenMatchMode

  • Include

  • Complete

CenMatchMode:
  Type: String
  AllowedValues:
    - Include
    - Complete
  AssociationPropertyMetadata:
    LocaleKey: CenMatchMode

CEN路由条目的下一跳类型

CenNextHopType

  • BlackHole

  • Attachment

CenNextHopType:
  Type: String
  AllowedValues:
    - BlackHole
    - Attachment
  AssociationPropertyMetadata:
    LocaleKey: CenNextHopType

CEN匹配路由的类型列表

CenRouteTypes

  • System

  • Custom

  • BGP

CenRouteTypes:
  Type: String
  AllowedValues:
    - System
    - Custom
    - BGP
  AssociationPropertyMetadata:
    LocaleKey: CenRouteTypes

CEN路由策略应用的方向

CenTransmitDirection

  • RegionIn

  • RegionOut

CenTransmitDirection:
  Type: String
  AllowedValues:
    - RegionIn
    - RegionOut
  AssociationPropertyMetadata:
    LocaleKey: CenTransmitDirection

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

云盘的性能等级

DiskPerformanceLevel

  • PL0

  • PL1

  • PL2

  • PL3

DiskPerformanceLevel:
  Type: String
  AllowedValues:
    - PL0
    - PL1
    - PL2
    - PL3
  AssociationPropertyMetadata:
    LocaleKey: DiskPerformanceLevel

ECS弹性供应组的交付类型

ECSAutoProvisioningGroupType

  • request

  • maintain

ECSAutoProvisioningGroupType:
  Type: String
  AllowedValues:
    - request
    - maintain
  AssociationPropertyMetadata:
    LocaleKey: ECSAutoProvisioningGroupType

ECS命令的类型

ECSCommandType

  • RunBatScript

  • RunShellScript

ECSCommandType:
  Type: String
  AllowedValues:
    - RunBatScript
    - RunPowerShellScript
    - RunShellScript
  AssociationPropertyMetadata:
    LocaleKey: ECSCommandType

ECS部署集内实例宕机迁移后,缺乏可供打散的实例库存的紧急处理方案

ECSOnUnableToRedeployFailedInstance

  • CancelMembershipAndStart

  • KeepStopped

ECSOnUnableToRedeployFailedInstance:
  Type: String
  AllowedValues:
    - CancelMembershipAndStart
    - KeepStopped
  AssociationPropertyMetadata:
    LocaleKey: ECSOnUnableToRedeployFailedInstance

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

ECS是否启用安全加固

ECSSecurityEnhancementStrategy

  • Active

  • Deactive

ECSSecurityEnhancementStrategy:
  Type: String
  AllowedValues:
    - Active
    - Deactive
  AssociationPropertyMetadata:
    LocaleKey: ECSSecurityEnhancementStrategy

ECS停止超额抢占式实例后的下一步动作

ECSSpotInstanceInterruptionBehavior

  • stop

  • terminate

ECSSpotInstanceInterruptionBehavior:
  Type: String
  AllowedValues:
    - stop
    - terminate
  AssociationPropertyMetadata:
    LocaleKey: ECSSpotInstanceInterruptionBehavior

ECS抢占式实例的策略

ECSTargetCapacity

  • lowest-price

  • diversified

ECSTargetCapacity:
  Type: String
  AllowedValues:
    - lowest-price
    - diversified
  AssociationPropertyMetadata:
    LocaleKey: ECSTargetCapacity

EIP绑定模式

EIPAssociationMode

  • NAT

  • MULTI_BINDED

  • BINDED

EIPAssociationMode:
  Type: String
  AllowedValues:
    - NAT
    - MULTI_BINDED
    - BINDED
  AssociationPropertyMetadata:
  LocaleKey: EIPAssociationMode

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

EIPSegment网络类型

EIPSegmentNetmode

  • public

  • hybrid

EIPSegmentNetmode:
  Type: String
  AllowedValues:
    - public
    - hybrid
  AssociationPropertyMetadata:
    LocaleKey: EIPSegmentNetmode

ESS伸缩规则的调整方式

ESSAdjustmentType

  • QuantityChangeInCapacity

  • PercentChangeInCapacity

  • TotalCapacity

ESSAdjustmentType:
  Type: String
  AllowedValues:
    - QuantityChangeInCapacity
    - PercentChangeInCapacity
    - TotalCapacity
  AssociationPropertyMetadata:
    LocaleKey: ESSAdjustmentType

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伸缩规则的预定义监控项

ESSMetricName

  • CpuUtilization

  • ClassicInternetRx

  • ClassicInternetTx

  • VpcInternetRx

  • VpcInternetTx

  • IntranetRx

  • IntranetTx

ESSMetricName:
  Type: String
  AllowedValues:
    - CpuUtilization
    - ClassicInternetRx
    - ClassicInternetTx
    - VpcInternetRx
    - VpcInternetTx
    - IntranetRx
    - IntranetTx
  AssociationPropertyMetadata:
    LocaleKey: ESSMetricName

ESS多可用区伸缩组ECS实例扩缩容策略

ESSMultiAZPolicy

  • PRIORITY

  • BALANCE

  • COST_OPTIMIZED

ESSMultiAZPolicy:
  Type: String
  AllowedValues:
    - PRIORITY
    - BALANCE
    - COST_OPTIMIZED
  AssociationPropertyMetadata:
    LocaleKey: ESSMultiAZPolicy

ESS预测规则的模式

ESSPredictiveScalingMode

  • PredictAndScale

  • PredictOnly

ESSPredictiveScalingMode:
  Type: String
  AllowedValues:
    - PredictAndScale
    - PredictOnly
  AssociationPropertyMetadata:
    LocaleKey: ESSPredictiveScalingMode

ESS预测规则最大值处理方式

ESSPredictiveValueBehavior

  • MaxOverridePredictiveValue

  • PredictiveValueOverrideMax

  • PredictiveValueOverrideMaxWithBuffer

ESSPredictiveValueBehavior:
  Type: String
  AllowedValues:
    - MaxOverridePredictiveValue
    - PredictiveValueOverrideMax
    - PredictiveValueOverrideMaxWithBuffer
  AssociationPropertyMetadata:
    LocaleKey: ESSPredictiveValueBehavior

ESS伸缩组弹性收缩活动

ESSRemovalPolicys

  • OldestInstance

  • NewestInstance

  • OldestScalingConfiguration

ESSRemovalPolicys:
  Type: String
  AllowedValues:
    - OldestInstance
    - NewestInstance
    - OldestScalingConfiguration
  AssociationPropertyMetadata:
    LocaleKey: ESSRemovalPolicys

ESS伸缩规则类型

ESSScalingRuleType

  • SimpleScalingRule

  • TargetTrackingScalingRule

  • StepScalingRule

  • PredictiveScalingRule

ESSScalingRuleType:
  Type: String
  AllowedValues:
    - SimpleScalingRule
    - TargetTrackingScalingRule
    - StepScalingRule
    - PredictiveScalingRule
  AssociationPropertyMetadata:
    LocaleKey: ESSScalingRuleType

ESS定时任务

ESSScheduledTaskRecurrenceType

  • Daily

  • Weekly

  • Monthly

  • Cron

ESSScheduledTaskRecurrenceType:
  Type: String
  AllowedValues:
    - Daily
    - Weekly
    - Monthly
    - Cron
  AssociationPropertyMetadata:
    LocaleKey: ESSScheduledTaskRecurrenceType

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

付费模式

InstanceChargeType

  • PostPaid

  • Postpaid

  • PayOnDemand

  • PayAsYouGo

  • POSTPAY

  • PrePaid

  • Prepaid

  • PrePay

  • Subscription

  • PREPAY

ECSInstanceChargeType:
  Type: String
  AllowedValues:
    - PostPaid
    - PrePaid
  AssociationPropertyMetadata:
    LocaleKey: InstanceChargeType

实例的网络类型

InstanceNetworkType

  • vpc

  • VPC

  • classic

  • CLASSIC

  • Classic

RDSNetworkType:
  Type: String
  AllowedValues:
    - VPC
    - CLASSIC
  AssociationPropertyMetadata:
    LocaleKey: InstanceNetworkType

实例的竞价策略

InstanceSpotStrategy

  • Spot

  • NoSpot

  • SpotWithPriceLimit

  • SpotAsPriceGo

ECSSpotStrategy:
  Type: String
  AllowedValues:
    - Spot
    - NoSpot
  AssociationPropertyMetadata:
    LocaleKey: InstanceSpotStrategy

带宽计费方式

InternetChargeType

  • PayByBandwidth

  • paybybandwidth

  • PayBySpec

  • PayByTraffic

  • paybytraffic

  • PayByLcu

ECSInternetChargeType:
  Type: String
  AllowedValues:
    - PayByBandwidth
    - PayByTraffic
  AssociationPropertyMetadata:
    LocaleKey: InternetChargeType

MongoDB存储引擎

MongoDBStorageEngine

  • WiredTiger

  • RocksDB

  • TerarkDB

MongoDBStorageEngine:
  Type: String
  AllowedValues:
    - WiredTiger
    - RocksDB
    - TerarkDB
  AssociationPropertyMetadata:
    LocaleKey: MongoDBStorageEngine

NAS文件系统类型

NasFileSystemType

  • standard

  • extreme

  • cpfs

NasFileSystemType:
  Type: String
  AllowedValues:
    - standard
    - extreme
    - cpfs
  AssociationPropertyMetadata:
    LocaleKey: NasFileSystemType

NAS存储类型

NasStorageType

  • Performance

  • Capacity

  • standard

  • advance

NasStorageType:
  Type: String
  AllowedValues:
    - Performance
    - Capacity
  AssociationPropertyMetadata:
    LocaleKey: NasStorageType

NAT网关的规格

NatGatewaySpec

  • Small

  • Middle

  • Large

  • XLarge.1

NatGatewaySpec:
  Type: String
  AllowedValues:
    - Small
    - Middle
    - Large
    - XLarge.1
  AssociationPropertyMetadata:
    LocaleKey: NatGatewaySpec

NAT网关的类型

NatType

  • Normal

  • Enhanced

NatType:
  Type: String
  AllowedValues:
    - Normal
    - Enhanced
  AssociationPropertyMetadata:
    LocaleKey: NatType

网络类型

NetType

  • Intranet

  • Internet

  • privatenet

  • pubnet

ECSInstanceNetType:
  Type: String
  AllowedValues:
    - Intranet
    - Internet
  AssociationPropertyMetadata:
    LocaleKey: NetType

OOS参数的约束条件

OOSConstraints

  • AllowedValues

  • AllowedPattern

  • MinLength

  • MaxLength

OOSConstraints:
  Type: String
  AllowedValues:
    - MinLength
    - MaxLength
  AssociationPropertyMetadata:
    LocaleKey: OOSConstraints

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

布尔类型的参数

ParameterBoolean

  • True

  • true

  • False

  • false

  • on

  • off

  • ConsoleProtection

  • NonProtection

  • Enable

  • Disabled

  • Enabled

ECSAutoRenew:
  Type: String
  AllowedValues:
    - 'true'
    - 'false'
  AssociationPropertyMetadata:
    LocaleKey: ParameterBoolean

包年包月周期

PricingCycle

  • Week

  • week

  • Month

  • month

  • Year

  • year

ECSPeriodUnit:
  Type: String
  AllowedValues:
    - Week
    - Month
    - Year
  AssociationPropertyMetadata:
    LocaleKey: PricingCycle

RDS账号权限

RDSAccountPrivilege

  • ReadWrite

  • ReadOnly

  • DDLOnly

  • DMLOnly

  • DBOwner

RDSAccountPrivilege:
  Type: String
  AllowedValues:
    - ReadWrite
    - ReadOnly
    - DDLOnly
    - DMLOnly
  AssociationPropertyMetadata:
    LocaleKey: RDSAccountPrivilege

RDS账号类型

RDSAccountType

  • Normal

  • Super

  • Sysadmin

RDSAccountType:
  Type: String
  AllowedValues:
    - Normal
    - Super
    - Sysadmin
  AssociationPropertyMetadata:
    LocaleKey: RDSAccountType

RDS数据是否启用二级备份功能

RDSBackUpCategory

  • Flash

  • Standard

RDSBackUpCategory:
  Type: String
  AllowedValues:
    - Flash
    - Standard
  AssociationPropertyMetadata:
    LocaleKey: RDSBackUpCategory

RDS数据库备份类型

RDSBackupPolicyMode

  • DataBackupPolicy

  • LogBackupPolicy

  • FullBackup

  • IncrementalBackup

RDSBackupPolicyMode:
  Type: String
  AllowedValues:
    - FullBackup
    - IncrementalBackup
  AssociationPropertyMetadata:
    LocaleKey: RDSBackupPolicyMode

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实例连接地址的类型

RDSConnectionStringType

  • Inner

  • Public

RDSConnectionStringType:
  Type: String
  AllowedValues:
    - Inner
    - Public
  AssociationPropertyMetadata:
    LocaleKey: RDSConnectionStringType

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

RouterInterface所属的路由器类型

RouterType

  • VRouter

  • VBR

RouterType:
  Type: String
  AllowedValues:
    - VRouter
    - VBR
  AssociationPropertyMetadata:
    LocaleKey: RouterType

伸缩组模式

ScalingPolicy

  • release

  • recycle

ScalingPolicy:
  Type: String
  AllowedValues:
    - release
    - recycle
  AssociationPropertyMetadata:
    LocaleKey: ScalingPolicy

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
  • 本页导读 (1)
文档反馈