CfnResourceDefinitionMixinProps
- class aws_cdk.mixins_preview.aws_greengrass.mixins.CfnResourceDefinitionMixinProps(*, initial_version=None, name=None, tags=None)
Bases:
objectProperties for CfnResourceDefinitionPropsMixin.
- Parameters:
initial_version (
Union[IResolvable,ResourceDefinitionVersionProperty,Dict[str,Any],None]) – The resource definition version to include when the resource definition is created. A resource definition version contains a list of`resource instance<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourceinstance.html>`_ property types. .. epigraph:: To associate a resource definition version after the resource definition is created, create an`AWS::Greengrass::ResourceDefinitionVersion<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html>`_ resource and specify the ID of this resource definition.name (
Optional[str]) – The name of the resource definition.tags (
Any) – Application-specific metadata to attach to the resource 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 . ThisJsonproperty type is processed as a map of key-value pairs. It uses the following format, which is different from mostTagsimplementations in CloudFormation templates:: “Tags”: { “KeyName0”: “value”, “KeyName1”: “value”, “KeyName2”: “value” }
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrass import mixins as greengrass_mixins # tags: Any cfn_resource_definition_mixin_props = greengrass_mixins.CfnResourceDefinitionMixinProps( initial_version=greengrass_mixins.CfnResourceDefinitionPropsMixin.ResourceDefinitionVersionProperty( resources=[greengrass_mixins.CfnResourceDefinitionPropsMixin.ResourceInstanceProperty( id="id", name="name", resource_data_container=greengrass_mixins.CfnResourceDefinitionPropsMixin.ResourceDataContainerProperty( local_device_resource_data=greengrass_mixins.CfnResourceDefinitionPropsMixin.LocalDeviceResourceDataProperty( group_owner_setting=greengrass_mixins.CfnResourceDefinitionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), local_volume_resource_data=greengrass_mixins.CfnResourceDefinitionPropsMixin.LocalVolumeResourceDataProperty( destination_path="destinationPath", group_owner_setting=greengrass_mixins.CfnResourceDefinitionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), s3_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionPropsMixin.S3MachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), s3_uri="s3Uri" ), sage_maker_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionPropsMixin.SageMakerMachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), sage_maker_job_arn="sageMakerJobArn" ), secrets_manager_secret_resource_data=greengrass_mixins.CfnResourceDefinitionPropsMixin.SecretsManagerSecretResourceDataProperty( additional_staging_labels_to_download=["additionalStagingLabelsToDownload"], arn="arn" ) ) )] ), name="name", tags=tags )
Attributes
- initial_version
The resource definition version to include when the resource definition is created.
A resource definition version contains a list of
`resource instance<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourceinstance.html>`_ property types. .. epigraph:To associate a resource definition version after the resource definition is created, create an ```AWS::Greengrass::ResourceDefinitionVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html>`_ resource and specify the ID of this resource definition.
- name
The name of the resource definition.
- tags
Application-specific metadata to attach to the resource 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
Jsonproperty type is processed as a map of key-value pairs. It uses the following format, which is different from mostTagsimplementations in CloudFormation templates:"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }