All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::KMS::NetworkRules

Last Updated:Oct 08, 2024

DATASOURCE::KMS::NetworkRules is used to query the information about network access rules.

Syntax

{
  "Type": "DATASOURCE::KMS::NetworkRules",
  "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

  • NetworkRules: details of the network access rules.

  • NetworkRuleNames: the names of the network access rules.

Property

Type

Description

Constraint

NetworkRules

List

Details of the network access rules.

None.

NetworkRuleNames

List

The names of the network access rules.

None.

NetworkRuleName

String

The name of the network access rule.

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::KMS::NetworkRules
    Outputs:
      NetworkRules:
        Description: The list of network rules.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - NetworkRules
      NetworkRuleNames:
        Description: The list of network rule names.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - NetworkRuleNames
    
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::KMS::NetworkRules"
        }
      },
      "Outputs": {
        "NetworkRules": {
          "Description": "The list of network rules.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "NetworkRules"
            ]
          }
        },
        "NetworkRuleNames": {
          "Description": "The list of network rule names.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "NetworkRuleNames"
            ]
          }
        }
      }
    }