DATASOURCE::OOS::SecretParameter类型用于查询单个Secret参数详情。
语法
{
  "Type": "DATASOURCE::OOS::SecretParameter",
  "Properties": {
    "SecretParameterName": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| SecretParameterName | String | 是 | 是 | 参数名称。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- Description:参数描述信息。 
- CreatedBy:参数创建者。 
- ResourceGroupId:资源组ID。 
- SecretParameterName:参数名称。 
- UpdatedDate:参数更新时间。 
- CreateTime:参数创建时间。 
- KeyId:加密使用的KMS的KeyId。 
- SecretParameterId:加密参数ID。 
- UpdatedBy:参数更新者。 
- Type:参数类型。 
- Constraints:参数的约束条件。 
- ParameterVersion:参数版本。 
- Value:参数内容。 
- Tags:自定义标签信息。 
- ShareType:参数共享类型。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SecretParameterName:
    Type: String
    Description:
      en: The name of the parameter.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::OOS::SecretParameter
    Properties:
      SecretParameterName:
        Ref: SecretParameterName
Outputs:
  Description:
    Description: The description of the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  CreatedBy:
    Description: The user who created the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreatedBy
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  SecretParameterName:
    Description: 'The name of the parameter. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SecretParameterName
  UpdatedDate:
    Description: The time when the encryption parameter was updated.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - UpdatedDate
  CreateTime:
    Description: The time when the encryption parameter was created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  KeyId:
    Description: The ID of the key of Key Management Service (KMS) that is used for encryption.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - KeyId
  SecretParameterId:
    Description: The ID of the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SecretParameterId
  UpdatedBy:
    Description: The user who updated the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - UpdatedBy
  Type:
    Description: The type of the parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Type
  Constraints:
    Description: The constraints of the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Constraints
  ParameterVersion:
    Description: The version number of the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ParameterVersion
  Value:
    Description: The value of the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Value
  Tags:
    Description: The tags of the parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  ShareType:
    Description: The share type of the encryption parameter.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ShareType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SecretParameterName": {
      "Type": "String",
      "Description": {
        "en": "The name of the parameter."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::OOS::SecretParameter",
      "Properties": {
        "SecretParameterName": {
          "Ref": "SecretParameterName"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "CreatedBy": {
      "Description": "The user who created the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreatedBy"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "SecretParameterName": {
      "Description": "The name of the parameter. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecretParameterName"
        ]
      }
    },
    "UpdatedDate": {
      "Description": "The time when the encryption parameter was updated.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UpdatedDate"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the encryption parameter was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "KeyId": {
      "Description": "The ID of the key of Key Management Service (KMS) that is used for encryption.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyId"
        ]
      }
    },
    "SecretParameterId": {
      "Description": "The ID of the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecretParameterId"
        ]
      }
    },
    "UpdatedBy": {
      "Description": "The user who updated the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UpdatedBy"
        ]
      }
    },
    "Type": {
      "Description": "The type of the parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "Constraints": {
      "Description": "The constraints of the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Constraints"
        ]
      }
    },
    "ParameterVersion": {
      "Description": "The version number of the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ParameterVersion"
        ]
      }
    },
    "Value": {
      "Description": "The value of the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Value"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "ShareType": {
      "Description": "The share type of the encryption parameter.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ShareType"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?