ALIYUN::OOS::SecretParameter類型用于創建一個加密參數。
語法
{
"Type": "ALIYUN::OOS::SecretParameter",
"Properties": {
"Description": String,
"Constraints": Map,
"ResourceGroupId": String,
"SecretParameterName": String,
"Value": String,
"KeyId": String,
"Tags": List
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Description | String | 否 | 是 | 參數的描述信息。 | 長度限制為200字符。 |
Constraints | Map | 否 | 否 | 參數的約束條件。 | 取值:
|
ResourceGroupId | String | 否 | 是 | 資源組ID。 | 無 |
SecretParameterName | String | 是 | 否 | 參數名稱。 | 內容限制為字母、數字、中劃線、下劃線,長度不能超過180字符,且不能以 |
Value | String | 是 | 是 | 參數內容。 | 長度限制為4096。 |
KeyId | String | 否 | 否 | 加密使用的KMS的KeyId。 | 無 |
Tags | List | 否 | 是 | 自定義標簽。 | 最多支持添加20個標簽。 更多信息,請參見Tags屬性。 |
Tags語法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Value | String | 否 | 否 | 標簽值。 | 長度為0~128個字符,不能以 |
Key | String | 是 | 否 | 標簽鍵。 | 長度為1~128個字符,不能以 |
返回值
Fn::GetAtt
Description:參數的描述信息。
CreatedBy:參數創建者。
ResourceGroupId:參數的資源組ID。
SecretParameterName:參數名稱。
UpdatedDate:參數更新時間。
CreateTime:參數創建時間。
KeyId:加密使用的KMS的KeyId。
SecretParameterId:參數ID。
UpdatedBy:參數更新者。
Type:參數類型。
Constraints:參數約束條件。
ParameterVersion:參數版本號。
Tags:標簽。
ShareType:參數共享類型。
示例
ROSTemplateFormatVersion: '2015-09-01' Parameters: {} Resources: ExtensionResource: Type: ALIYUN::OOS::SecretParameter Properties: Constraints: '{"AllowedValues":["secretparameter"],"AllowedPattern":"secretparameter","MinLength":0,"MaxLength":20}' SecretParameterName: MySecretParameter Value: SecretParameter KeyId: 80e9409f-78fa-42ab-84bd-83f40c****** Outputs: Description: Description: The description of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - Description CreatedBy: Description: The user who created the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - CreatedBy ResourceGroupId: Description: The ID of resource group. Value: Fn::GetAtt: - ExtensionResource - ResourceGroupId SecretParameterName: Description: The name of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - SecretParameterName UpdatedDate: Description: The time when the encryption parameter was updated. Value: Fn::GetAtt: - ExtensionResource - UpdatedDate CreateTime: Description: The time when the encryption parameter was created. Value: Fn::GetAtt: - ExtensionResource - CreateTime KeyId: Description: The Customer Master Key (CMK) of Key Management Service (KMS) that is used to encrypt the parameter. Value: Fn::GetAtt: - ExtensionResource - KeyId SecretParameterId: Description: The ID of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - SecretParameterId UpdatedBy: Description: The user who updated the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - UpdatedBy Type: Description: The data type of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - Type Constraints: Description: The constraints of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - Constraints ParameterVersion: Description: The version number of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - ParameterVersion Tags: Description: Tags of encryption parameter. Value: Fn::GetAtt: - ExtensionResource - Tags ShareType: Description: The share type of the encryption parameter. Value: Fn::GetAtt: - ExtensionResource - ShareType
{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "ExtensionResource": { "Type": "ALIYUN::OOS::SecretParameter", "Properties": { "Constraints": "{\"AllowedValues\":[\"secretparameter\"],\"AllowedPattern\":\"secretparameter\",\"MinLength\":0,\"MaxLength\":20}", "SecretParameterName": "MySecretParameter", "Value": "SecretParameter", "KeyId": "80e9409f-78fa-42ab-84bd-83f40c******" } } }, "Outputs": { "Description": { "Description": "The description of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Description" ] } }, "CreatedBy": { "Description": "The user who created the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "CreatedBy" ] } }, "ResourceGroupId": { "Description": "The ID of resource group.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "ResourceGroupId" ] } }, "SecretParameterName": { "Description": "The name of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "SecretParameterName" ] } }, "UpdatedDate": { "Description": "The time when the encryption parameter was updated.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "UpdatedDate" ] } }, "CreateTime": { "Description": "The time when the encryption parameter was created.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "CreateTime" ] } }, "KeyId": { "Description": "The Customer Master Key (CMK) of Key Management Service (KMS) that is used to encrypt the parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "KeyId" ] } }, "SecretParameterId": { "Description": "The ID of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "SecretParameterId" ] } }, "UpdatedBy": { "Description": "The user who updated the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "UpdatedBy" ] } }, "Type": { "Description": "The data type of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Type" ] } }, "Constraints": { "Description": "The constraints of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Constraints" ] } }, "ParameterVersion": { "Description": "The version number of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "ParameterVersion" ] } }, "Tags": { "Description": "Tags of encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Tags" ] } }, "ShareType": { "Description": "The share type of the encryption parameter.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "ShareType" ] } } } }