All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::KMS::Policies

更新時間:Oct 08, 2024

DATASOURCE::KMS::Policies is used to query permission policies.

Syntax

{
  "Type": "DATASOURCE::KMS::Policies",
  "Properties": {
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

Return values

Fn::GetAtt

  • PolicyNames: the names of the permission policies.

  • Policies: details of the permission policies.

Property

Type

Description

Constraint

Policies

List

Details of the permission policies.

None.

PolicyNames

List

The names of the permission policies.

None.

PolicyName

String

The name of the permission policy.

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::KMS::Policies
    Outputs:
      PolicyNames:
        Description: The list of policy names.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - PolicyNames
      Policies:
        Description: The list of policies.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Policies
    
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::KMS::Policies"
        }
      },
      "Outputs": {
        "PolicyNames": {
          "Description": "The list of policy names.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "PolicyNames"
            ]
          }
        },
        "Policies": {
          "Description": "The list of policies.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Policies"
            ]
          }
        }
      }
    }