AssociationProperty 値 | 説明 | 対応する AssociationPropertyMetadata |
Auto | ROS は、元の Terraform データ構造に基づいて、AssociationProperty や AssociationPropertyMetadata などのフィールドを自動的に生成します。
説明 これは、Terraform テンプレート内の JSON パラメーターにのみ適用されます。 | 上書き:内部ネストされたパラメーターの定義を補足または上書きします。 このオプションパラメーターは、以下のコンポーネントを含むディクショナリです。 キー 内部ネストされたパラメーターへのパスです。パスルールは以下のとおりです。 リストまたはセット内の要素を表すには、* を使用します。 オブジェクト内のアイテムを表すには、アイテム名を使用します。 パスを区切るには、ドット (.) を使用します。 パスの先頭と途中にある * 文字は省略できます。パスの末尾にある 1 つ以上の * 文字は省略できません。
例: // The path for name is name.
// The path for address is address.
variable "user_information" {
type = object({
name = string
address = string
})
}
// The path for elements in region_ids is *.
variable "region_ids" {
type = list(string)
}
// The path for internal is *.internal, which can be abbreviated as internal.
// The path for external is *.external, which can be abbreviated as external.
// The path for protocol is *.protocol, which can be abbreviated as protocol.
variable "docker_ports" {
type = list(object({
internal = number
external = number
protocol = string
}))
}
// The path for b is *.b, which can be abbreviated as b.
// The path for elements in b is *.b.*, which can be abbreviated as b.*
// The path for c is *.c, which can be abbreviated as c.
// The path for d is *.c.*.d, which can be abbreviated as c.d.
// The path for elements in d is *.c.*.d.*, which can be abbreviated as c.d.*
// The path for e is *.e, which can be abbreviated as e.
// The path for elements in e is *.e.*, which can be abbreviated as e.*.
// The path for elements in e is *.e.*.*, which can be abbreviated as e.*.* (you must keep both * characters).
// The path for f is *.f, which can be abbreviated as f.
// The path for g is *.f.*.*.g, which can be abbreviated as f.g.
// The path for elements in g is *.f.*.*.g.*, which can be abbreviated as f.g.*
variable "complex_type_demo" {
type = list(object({
b = list(string)
c = list(object({
d = list(string)
}))
e = list(list(string))
f = list(list(object({
g = list(string)
})))
}))
}
値 パラメーター定義の補足です。詳細については、「概要」をご参照ください。
|
AutoCompleteInput | ランダム文字列を自動的に生成します。 | CharacterClasses クラス:文字タイプです。有効な値: 最小:現在のタイプにおける最小文字数です。 SpecialCharacters:指定された特殊文字です。このパラメーターは、クラスが specialCharacter に設定されている場合にのみ有効です。 開始:文字列が特殊文字で始まることができるかどうかを指定します。このパラメーターは、クラスが specialCharacter に設定されている場合にのみ有効です。 終了:文字列が特殊文字で終わることができるかどうかを指定します。このパラメーターは、クラスが specialCharacter に設定されている場合にのみ有効です。
プレフィックス:文字列のプレフィックスです。 サフィックス:文字列のサフィックスです。 長さ:文字列の長さです。
コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ManagedKubernetesClusterName": {
"Type": "String",
"Label": {
"en": "Managed Kubernetes Cluster Name",
"zh-cn": "ACK managed cluster name"
},
"AssociationProperty": "AutoCompleteInput",
"AssociationPropertyMetadata": {
"Length": 5,
"Prefix": "cluster-for-mse-",
"Suffix": "-by-ros",
"CharacterClasses": [
{
"Class": "lowercase",
"min": 1
}
]
}
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ManagedKubernetesClusterName:
Type: String
Label:
en: Managed Kubernetes Cluster Name
zh-cn: ACK managed cluster name
AssociationProperty: AutoCompleteInput
AssociationPropertyMetadata:
Length: 5
Prefix: cluster-for-mse-
Suffix: '-by-ros'
CharacterClasses:
- Class: lowercase
min: 1
|
ChargeType | 課金方法です。有効な値: | なし |
Code | コード入力フィールドです。 | なし |
CommaDelimitedList | コンマ区切りの配列です。 | なし |
Cron | cron 式です。これは、定期タスクの実行時間を指定するフォーマットされた文字列です。 | なし |
DateTime | 日付です。 | GMTZone:GMT ゾーンです。 TimeZone:タイムゾーンの説明です。
例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DateTime": {
"Type": "String",
"AssociationProperty": "DateTime"
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DateTime:
Type: String
AssociationProperty: DateTime
説明例 この例では、DateTime パラメーターの AssociationProperty に DateTime を指定することで、日付が設定されます。
|
FileContent | ローカルファイルからコンテンツを読み取ります。 | AcceptFileSuffixes:アップロードで許可されるファイルタイプです。複数のファイルタイプはコンマで区切ります。 |
GMTZone | GMT ゾーン選択です。 | 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GMTZone": {
"Type": "String",
"AssociationProperty": "GMTZone"
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GMTZone:
Type: String
AssociationProperty: GMTZone
説明例 この例では、GMTZone パラメーターの AssociationProperty に GMTZone を指定することで、GMT ゾーンが設定されます。
|
Json | JSON オブジェクト入力です。 | なし |
List[Parameter] | パラメーターのリストです。インデントを使用してパラメーターを配置します。 これは、JSON パラメーターにのみ適用されます。 | パラメーター:パラメーター定義です。 モード:表示スタイルです。
詳細については、「概要」をご参照ください。 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionIds": {
"Label": {
"en": "ECS Region Ids",
"zh-cn": "ECS Region List"
},
"MaxLength": 100,
"MinLength": 1,
"Type": "Json",
"AssociationProperty": "List[Parameter]",
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId",
"MinLength": 1,
"MaxLength": 64
}
}
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionIds:
Label:
en: ECS Region Ids
zh-cn: ECS Region List
MaxLength: 100
MinLength: 1
Type: Json
AssociationProperty: List[Parameter]
AssociationPropertyMetadata:
Parameter:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
MinLength: 1
MaxLength: 64
説明例 この例では、AssociationProperty に List[Parameter] を、AssociationPropertyMetadata に Parameter を指定することで、複数の ECS リージョン ID をコンソールでインデントして配置します。
|
List[Parameters] | パラメーターグループのリストです。テーブルを使用してパラメーターグループを配置します。 これは、JSON パラメーターにのみ適用されます。 | |
OOSServiceRole | OOS サーバロールです。 | RegionId:リージョン ID です。デフォルト値はスタックのリージョンです。 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"OosServiceRole": {
"Type": "String",
"AssociationProperty": "OOSServiceRole",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
OosServiceRole:
Type: String
AssociationProperty: OOSServiceRole
AssociationPropertyMetadata:
RegionId: ${RegionId}
説明例 この例では、OosServiceRole パラメーターの AssociationProperty に OOSServiceRole を指定することで、OOS サーバロールが設定されます。
|
Password | パスワード入力フィールドです。 | なし |
RateControl | OOS 実行レートです。 | 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RateControl": {
"Type": "String",
"AssociationProperty": "RateControl"
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RateControl:
Type: String
AssociationProperty: RateControl
説明例 この例では、RateControl パラメーターの AssociationProperty に RateControl を指定することで、OOS 実行レートが設定されます。
|
Tags | タグです。 | 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"Tags": {
"Type": "String",
"AssociationProperty": "Tags",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ResourceType": "ALIYUN::ECS::INSTANCE"
}
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
Tags:
Type: String
AssociationProperty: Tags
AssociationPropertyMetadata:
RegionId: ${RegionId}
ResourceType: ALIYUN::ECS::INSTANCE
説明例 この例では、Tags パラメーターの AssociationProperty に Tags を指定し、AssociationPropertyMetadata 属性に RegionId と ResourceType を指定することで、ECS インスタンスのカスタムタグ情報が取得されます。
|
Targets | ECS インスタンスオブジェクトです。インスタンス ID、タグ、リソースグループ、またはその他の方法でインスタンスを選択できます。 | RegionId:リージョン ID です。デフォルト値はスタックのリージョンです。 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"Targets": {
"Type": "String",
"AssociationProperty": "Targets",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
Targets:
Type: String
AssociationProperty: Targets
AssociationPropertyMetadata:
RegionId: ${RegionId}
説明例 この例では、Targets パラメーターの AssociationProperty に Targets を指定し、AssociationPropertyMetadata 属性に RegionId を指定することで、ECS インスタンスオブジェクトが取得されます。
|
TextArea | リッチテキスト入力フィールドです。 | なし |
TimeTriggerWeekly | 週単位で時間を選択します。 | 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TimeTriggerWeekly": {
"Type": "String",
"AssociationProperty": "TimeTriggerWeekly"
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TimeTriggerWeekly:
Type: String
AssociationProperty: TimeTriggerWeekly
説明例 この例では、TimeTriggerWeekly パラメーターの AssociationProperty に TimeTriggerWeekly を指定することで、週単位で時間が選択されます。
|
TimeZone | タイムゾーン選択です。 | 例: コード例 JSON 例: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TimeZone": {
"Type": "String",
"AssociationProperty": "TimeZone"
}
}
}
YAML 例: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TimeZone:
Type: String
AssociationProperty: TimeZone
説明例 この例では、TimeZone パラメーターの AssociationProperty に TimeZone を指定することで、タイムゾーンが設定されます。
|
なし | インデントを使用してパラメーターを配置します。 これは、JSON パラメーターにのみ適用されます。
説明 AssociationProperty は指定しないでください。AssociationPropertyMetadata のみを指定して、パラメーターをインデントで配置します。 |
説明 これを List[Parameter] と組み合わせてネストされた構造を実装できます。ネスト深度に制限はありません。 |