すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:データソース::MNS::サブスクリプション

最終更新日:Mar 17, 2025

DATASOURCE::MNS::Subscription は、サブスクリプションに関する情報をクエリするために使用されます。

構文

{
  "Type": "DATASOURCE::MNS::Subscription",
  "Properties": {
    "SubscriptionName": String,
    "TopicName": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

SubscriptionName

String

はい

はい

サブスクリプションの名前。

なし。

TopicName

String

はい

はい

トピックの名前。

なし。

RefreshOptions

String

いいえ

はい

スタックが更新されたときのデータソースリソースのリフレッシュポリシー。

有効な値:

  • Never (デフォルト): スタックが更新されたときにデータソースリソースをリフレッシュしません。

  • Always: スタックが更新されたときにデータソースリソースをリフレッシュします。

戻り値

Fn::GetAtt

  • SubscriptionURL: サブスクリプションの URL。

  • TopicOwner: サブスクリプションのトピックオーナーのアカウント ID。

  • Endpoint: サブスクリプションに基づいてメッセージを受信するために使用されるエンドポイント。

  • CreateTime: サブスクリプションが作成された時刻。

  • NotifyStrategy: システムがエンドポイントにメッセージをプッシュするときにエラーが発生した場合に適用されるリトライポリシー。

  • NotifyContentFormat: エンドポイントにプッシュされるメッセージの形式。

  • FilterTag: サブスクリプションで指定されたメッセージフィルタリングタグ。

  • SubscriptionName: サブスクリプションの名前。

  • LastModifyTime: サブスクリプションが最後に変更された時刻。

  • TopicName: トピックの名前。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SubscriptionName:
    Type: String
    Description:
      en: The name of the subscription.
    Required: true
  TopicName:
    Type: String
    Description:
      en: The name of the topic.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::MNS::Subscription
    Properties:
      SubscriptionName:
        Ref: SubscriptionName
      TopicName:
        Ref: TopicName
Outputs:
  SubscriptionURL:
    Description: サブスクリプションの URL。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SubscriptionURL
  TopicOwner:
    Description: トピックの所有者。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TopicOwner
  Endpoint:
    Description: サブスクライバーがメッセージを受信するために使用するエンドポイント。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Endpoint
  CreateTime:
    Description: サブスクリプションが作成された時刻。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  NotifyStrategy:
    Description: メッセージサービス ( MNS ) がエンドポイントにメッセージをプッシュするときにエラーが発生した場合に適用されるリトライポリシー。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NotifyStrategy
  NotifyContentFormat:
    Description: エンドポイントにプッシュされるメッセージの形式。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NotifyContentFormat
  FilterTag:
    Description: このサブスクリプションでメッセージがフィルタリングされるラベルについて説明します ( 一致するラベルを持つメッセージのみがプッシュされます ) 。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - FilterTag
  SubscriptionName:
    Description: サブスクリプションの名前。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SubscriptionName
  LastModifyTime:
    Description: サブスクリプションが最後に変更された時刻。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LastModifyTime
  TopicName:
    Description: トピックの名前。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TopicName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SubscriptionName": {
      "Type": "String",
      "Description": {
        "en": "The name of the subscription."
      },
      "Required": true
    },
    "TopicName": {
      "Type": "String",
      "Description": {
        "en": "The name of the topic."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::MNS::Subscription",
      "Properties": {
        "SubscriptionName": {
          "Ref": "SubscriptionName"
        },
        "TopicName": {
          "Ref": "TopicName"
        }
      }
    }
  },
  "Outputs": {
    "SubscriptionURL": {
      "Description": "サブスクリプションの URL。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SubscriptionURL"
        ]
      }
    },
    "TopicOwner": {
      "Description": "トピックの所有者。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TopicOwner"
        ]
      }
    },
    "Endpoint": {
      "Description": "サブスクライバーがメッセージを受信するために使用するエンドポイント。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Endpoint"
        ]
      }
    },
    "CreateTime": {
      "Description": "サブスクリプションが作成された時刻。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "NotifyStrategy": {
      "Description": "メッセージサービス ( MNS ) がエンドポイントにメッセージをプッシュするときにエラーが発生した場合に適用されるリトライポリシー。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NotifyStrategy"
        ]
      }
    },
    "NotifyContentFormat": {
      "Description": "エンドポイントにプッシュされるメッセージの形式。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NotifyContentFormat"
        ]
      }
    },
    "FilterTag": {
      "Description": "このサブスクリプションでメッセージがフィルタリングされるラベルについて説明します ( 一致するラベルを持つメッセージのみがプッシュされます ) 。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FilterTag"
        ]
      }
    },
    "SubscriptionName": {
      "Description": "サブスクリプションの名前。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SubscriptionName"
        ]
      }
    },
    "LastModifyTime": {
      "Description": "サブスクリプションが最後に変更された時刻。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LastModifyTime"
        ]
      }
    },
    "TopicName": {
      "Description": "トピックの名前。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TopicName"
        ]
      }
    }
  }
}