aws-cdk-lib.aws_greengrass.CfnSubscriptionDefinitionProps

interface CfnSubscriptionDefinitionProps

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnSubscriptionDefinitionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnSubscriptionDefinitionProps
Javasoftware.amazon.awscdk.services.greengrass.CfnSubscriptionDefinitionProps
Pythonaws_cdk.aws_greengrass.CfnSubscriptionDefinitionProps
TypeScript aws-cdk-lib » aws_greengrass » CfnSubscriptionDefinitionProps

Properties for defining a CfnSubscriptionDefinition.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';

declare const tags: any;
const cfnSubscriptionDefinitionProps: greengrass.CfnSubscriptionDefinitionProps = {
  name: 'name',

  // the properties below are optional
  initialVersion: {
    subscriptions: [{
      id: 'id',
      source: 'source',
      subject: 'subject',
      target: 'target',
    }],
  },
  tags: tags,
};

Properties

NameTypeDescription
namestringThe name of the subscription definition.
initialVersion?IResolvable | SubscriptionDefinitionVersionPropertyThe subscription definition version to include when the subscription definition is created.
tags?anyApplication-specific metadata to attach to the subscription definition.

name

Type: string

The name of the subscription definition.


initialVersion?

Type: IResolvable | SubscriptionDefinitionVersionProperty (optional)

The subscription definition version to include when the subscription definition is created.

A subscription definition version contains a list of subscription property types.

To associate a subscription definition version after the subscription definition is created, create an AWS::Greengrass::SubscriptionDefinitionVersion resource and specify the ID of this subscription definition.


tags?

Type: any (optional)

Application-specific metadata to attach to the subscription definition.

You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .

This Json property type is processed as a map of key-value pairs. It uses the following format, which is different from most Tags implementations in AWS CloudFormation templates.

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}