All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::DirectMail::Ipfilters

Last Updated:Nov 01, 2024

DATASOURCE::DirectMail::Ipfilters is used to query IP filters.

Syntax

{
  "Type": "DATASOURCE::DirectMail::Ipfilters",
  "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

  • Ipfilters: details of the IP filters.

  • IpfilterIds: the IDs of the IP filters.

Property

Type

Description

Constraint

IpfilterIds

List

The IDs of the IP filters.

None.

Ipfilters

List

Details of the IP filters.

None.

IpfilterId

String

The ID of the IP filter.

None.

IpAddress

String

The IP address, IP range, or CIDR block.

None.

CreateTime

String

The time when the IP filter was created.

None.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  ExtensionDataSource:
    Properties: {}
    Type: DATASOURCE::DirectMail::Ipfilters
Outputs:
  IpfilterIds:
    Description: The list of ip filter IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - IpfilterIds
  Ipfilters:
    Description: The list of ip filters.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ipfilters

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::DirectMail::Ipfilters",
      "Properties": {}
    }
  },
  "Outputs": {
    "Ipfilters": {
      "Description": "The list of ip filters.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ipfilters"
        ]
      }
    },
    "IpfilterIds": {
      "Description": "The list of ip filter IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IpfilterIds"
        ]
      }
    }
  }
}