ALIYUN::SAE::ConfigMap は、名前空間に ConfigMap インスタンスを作成するために使用されます。
構文
{
"Type": "ALIYUN::SAE::ConfigMap",
"Properties": {
"Data": Map,
"NamespaceId": String,
"Name": String,
"Description": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Data | Map | はい | はい | ConfigMap データ。 | ConfigMap データは JSON 形式のキーと値のペアです。例:
k はキーを指定し、v は値を指定します。詳細については、「Kubernetes ConfigMap を管理する」をご参照ください。 |
NamespaceId | String | はい | いいえ | ConfigMap インスタンスが属する名前空間の ID。 | なし。 |
Name | String | はい | いいえ | ConfigMap インスタンスの名前。 | 名前には数字、文字、およびアンダースコア (_) を使用できます。名前は文字で始める必要があります。 |
Description | String | いいえ | はい | 説明。 | 説明は 1 ~ 255 文字で、スペースを含めることはできません。 |
戻り値
Fn::GetAtt
ConfigMapId: ConfigMap インスタンスの ID。
NamespaceId: ConfigMap インスタンスが属する名前空間の ID。
例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Data": {
"Type": "Json",
"Description": {
"en": "Configmap key value pairs of data, json format.The format is as follows:\n{\"k1\":\"v1\", \"k2\":\"v2\"}\nK means key, V represents value.For more information about configuration items, see management and use of configuration items."
},
"Required": true
},
"NamespaceId": {
"Type": "String",
"Description": {
"en": "The ID of the namespace to which this config map instance belongs."
},
"Required": true
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the config map."
},
"Required": true
}
},
"Resources": {
"ConfigMap": {
"Type": "ALIYUN::SAE::ConfigMap",
"Properties": {
"Data": {
"Ref": "Data"
},
"NamespaceId": {
"Ref": "NamespaceId"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"ConfigMapId": {
"Description": "ConfigMap の ID。",
"Value": {
"Fn::GetAtt": [
"ConfigMap",
"ConfigMapId"
]
}
},
"NamespaceId": {
"Description": "この ConfigMap インスタンスが属する名前空間の ID。",
"Value": {
"Fn::GetAtt": [
"ConfigMap",
"NamespaceId"
]
}
}
}
}
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Data": {
"Type": "Json",
"Description": {
"en": "Configmap key value pairs of data, json format.The format is as follows:\n{\"k1\":\"v1\", \"k2\":\"v2\"}\nK means key, V represents value.For more information about configuration items, see management and use of configuration items."
},
"Required": true
},
"NamespaceId": {
"Type": "String",
"Description": {
"en": "The ID of the namespace to which this config map instance belongs."
},
"Required": true
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the config map."
},
"Required": true
}
},
"Resources": {
"ConfigMap": {
"Type": "ALIYUN::SAE::ConfigMap",
"Properties": {
"Data": {
"Ref": "Data"
},
"NamespaceId": {
"Ref": "NamespaceId"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"ConfigMapId": {
"Description": "ConfigMap の ID。",
"Value": {
"Fn::GetAtt": [
"ConfigMap",
"ConfigMapId"
]
}
},
"NamespaceId": {
"Description": "この ConfigMap インスタンスが属する名前空間の ID。",
"Value": {
"Fn::GetAtt": [
"ConfigMap",
"NamespaceId"
]
}
}
}
}