CfnSubscriptionDefinitionProps
- class aws_cdk.aws_greengrass.CfnSubscriptionDefinitionProps(*, name, initial_version=None, tags=None)
Bases:
object
Properties for defining a
CfnSubscriptionDefinition
.- Parameters:
name (
str
) – The name of the subscription definition.initial_version (
Union
[IResolvable
,SubscriptionDefinitionVersionProperty
,Dict
[str
,Any
],None
]) – The subscription definition version to include when the subscription definition is created. A subscription definition version contains a list of`subscription
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-subscriptiondefinition-subscription.html>`_ property types. .. epigraph:: To associate a subscription definition version after the subscription definition is created, create an`AWS::Greengrass::SubscriptionDefinitionVersion
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-subscriptiondefinitionversion.html>`_ resource and specify the ID of this subscription definition.tags (
Optional
[Any
]) – 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 . ThisJson
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates:: “Tags”: { “KeyName0”: “value”, “KeyName1”: “value”, “KeyName2”: “value” }
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_greengrass as greengrass # tags: Any cfn_subscription_definition_props = greengrass.CfnSubscriptionDefinitionProps( name="name", # the properties below are optional initial_version=greengrass.CfnSubscriptionDefinition.SubscriptionDefinitionVersionProperty( subscriptions=[greengrass.CfnSubscriptionDefinition.SubscriptionProperty( id="id", source="source", subject="subject", target="target" )] ), tags=tags )
Attributes
- initial_version
The subscription definition version to include when the subscription definition is created.
A subscription definition version contains a list of
`subscription
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-subscriptiondefinition-subscription.html>`_ property types. .. epigraph:To associate a subscription definition version after the subscription definition is created, create an ```AWS::Greengrass::SubscriptionDefinitionVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-subscriptiondefinitionversion.html>`_ resource and specify the ID of this subscription definition.
- name
The name of the subscription definition.
- tags
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 mostTags
implementations in AWS CloudFormation templates:"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }