interface SubscriptionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.SNS.CfnTopicPropsMixin.SubscriptionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awssns#CfnTopicPropsMixin_SubscriptionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.sns.CfnTopicPropsMixin.SubscriptionProperty |
Python | aws_cdk.cfn_property_mixins.aws_sns.CfnTopicPropsMixin.SubscriptionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_sns » CfnTopicPropsMixin » SubscriptionProperty |
Subscription is an embedded property that describes the subscription endpoints of an Amazon topic.
For full control over subscription behavior (for example, delivery policy, filtering, raw message delivery, and cross-region subscriptions), use the AWS::SNS::Subscription resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sns as sns } from '@aws-cdk/cfn-property-mixins';
const subscriptionProperty: sns.CfnTopicPropsMixin.SubscriptionProperty = {
endpoint: 'endpoint',
protocol: 'protocol',
};
Properties
| Name | Type | Description |
|---|---|---|
| endpoint? | string | IFunction | IQueue | The endpoint that receives notifications from the Amazon topic. |
| protocol? | string | The subscription's protocol. |
endpoint?
Type:
string | IFunction | IQueue
(optional)
The endpoint that receives notifications from the Amazon topic.
The endpoint value depends on the protocol that you specify. For more information, see the Endpoint parameter of the [Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html) action in the Amazon API Reference .
protocol?
Type:
string
(optional)
The subscription's protocol.
For more information, see the Protocol parameter of the [Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html) action in the Amazon API Reference .

.NET
Go
Java
Python
TypeScript