CfnResourceDefinitionVersionProps

class aws_cdk.aws_greengrass.CfnResourceDefinitionVersionProps(*, resource_definition_id, resources)

Bases: object

Properties for defining a CfnResourceDefinitionVersion.

Parameters:
  • resource_definition_id (str) – The ID of the resource definition associated with this version. This value is a GUID.

  • resources (Union[IResolvable, Sequence[Union[IResolvable, ResourceInstanceProperty, Dict[str, Any]]]]) – The resources in this version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html

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 import aws_greengrass as greengrass

cfn_resource_definition_version_props = greengrass.CfnResourceDefinitionVersionProps(
    resource_definition_id="resourceDefinitionId",
    resources=[greengrass.CfnResourceDefinitionVersion.ResourceInstanceProperty(
        id="id",
        name="name",
        resource_data_container=greengrass.CfnResourceDefinitionVersion.ResourceDataContainerProperty(
            local_device_resource_data=greengrass.CfnResourceDefinitionVersion.LocalDeviceResourceDataProperty(
                source_path="sourcePath",

                # the properties below are optional
                group_owner_setting=greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty(
                    auto_add_group_owner=False,

                    # the properties below are optional
                    group_owner="groupOwner"
                )
            ),
            local_volume_resource_data=greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty(
                destination_path="destinationPath",
                source_path="sourcePath",

                # the properties below are optional
                group_owner_setting=greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty(
                    auto_add_group_owner=False,

                    # the properties below are optional
                    group_owner="groupOwner"
                )
            ),
            s3_machine_learning_model_resource_data=greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty(
                destination_path="destinationPath",
                s3_uri="s3Uri",

                # the properties below are optional
                owner_setting=greengrass.CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty(
                    group_owner="groupOwner",
                    group_permission="groupPermission"
                )
            ),
            sage_maker_machine_learning_model_resource_data=greengrass.CfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty(
                destination_path="destinationPath",
                sage_maker_job_arn="sageMakerJobArn",

                # the properties below are optional
                owner_setting=greengrass.CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty(
                    group_owner="groupOwner",
                    group_permission="groupPermission"
                )
            ),
            secrets_manager_secret_resource_data=greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty(
                arn="arn",

                # the properties below are optional
                additional_staging_labels_to_download=["additionalStagingLabelsToDownload"]
            )
        )
    )]
)

Attributes

resource_definition_id

The ID of the resource definition associated with this version.

This value is a GUID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html#cfn-greengrass-resourcedefinitionversion-resourcedefinitionid

resources

The resources in this version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html#cfn-greengrass-resourcedefinitionversion-resources