CfnResourceDefinitionVersionPropsMixin
- class aws_cdk.mixins_preview.aws_greengrass.mixins.CfnResourceDefinitionVersionPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::Greengrass::ResourceDefinitionVersionresource represents a resource definition version for AWS IoT Greengrass .A resource definition version contains a list of resources. (In CloudFormation , resources are named resource instances .) .. epigraph:
To create a resource definition version, you must specify the ID of the resource definition that you want to associate with the version. For information about creating a resource definition, see ```AWS::Greengrass::ResourceDefinition`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinition.html>`_ . After you create a resource definition version that contains the resources you want to deploy, you must add it to your group version. For more information, see ```AWS::Greengrass::Group`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-group.html>`_ .
- See:
- CloudformationResource:
AWS::Greengrass::ResourceDefinitionVersion
- Mixin:
true
- 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 import mixins from aws_cdk.mixins_preview.aws_greengrass import mixins as greengrass_mixins cfn_resource_definition_version_props_mixin = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin(greengrass_mixins.CfnResourceDefinitionVersionMixinProps( resource_definition_id="resourceDefinitionId", resources=[greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceInstanceProperty( id="id", name="name", resource_data_container=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDataContainerProperty( local_device_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalDeviceResourceDataProperty( group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), local_volume_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty( destination_path="destinationPath", group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), s3_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.S3MachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), s3_uri="s3Uri" ), sage_maker_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SageMakerMachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), sage_maker_job_arn="sageMakerJobArn" ), secrets_manager_secret_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SecretsManagerSecretResourceDataProperty( additional_staging_labels_to_download=["additionalStagingLabelsToDownload"], arn="arn" ) ) )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Greengrass::ResourceDefinitionVersion.- Parameters:
props (
Union[CfnResourceDefinitionVersionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['resourceDefinitionId', 'resources']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
GroupOwnerSettingProperty
- class CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty(*, auto_add_group_owner=None, group_owner=None)
Bases:
objectSettings that define additional Linux OS group permissions to give to the Lambda function process.
You can give the permissions of the Linux group that owns the resource or choose another Linux group. These permissions are in addition to the function’s
RunAspermissions.In an CloudFormation template,
GroupOwnerSettingis a property of the`LocalDeviceResourceData<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-localdeviceresourcedata.html>`_ and`LocalVolumeResourceData<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-localvolumeresourcedata.html>`_ property types.- Parameters:
auto_add_group_owner (
Union[bool,IResolvable,None]) – Indicates whether to give the privileges of the Linux group that owns the resource to the Lambda process. This gives the Lambda process the file access permissions of the Linux group.group_owner (
Optional[str]) – The name of the Linux group whose privileges you want to add to the Lambda process. This value is ignored ifAutoAddGroupOwneris true.
- 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 group_owner_setting_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" )
Attributes
- auto_add_group_owner
Indicates whether to give the privileges of the Linux group that owns the resource to the Lambda process.
This gives the Lambda process the file access permissions of the Linux group.
- group_owner
The name of the Linux group whose privileges you want to add to the Lambda process.
This value is ignored if
AutoAddGroupOwneris true.
LocalDeviceResourceDataProperty
- class CfnResourceDefinitionVersionPropsMixin.LocalDeviceResourceDataProperty(*, group_owner_setting=None, source_path=None)
Bases:
objectSettings for a local device resource, which represents a file under
/dev.For more information, see Access Local Resources with Lambda Functions in the Developer Guide .
In an CloudFormation template,
LocalDeviceResourceDatacan be used in the`ResourceDataContainer<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html>`_ property type.- Parameters:
group_owner_setting (
Union[IResolvable,GroupOwnerSettingProperty,Dict[str,Any],None]) – Settings that define additional Linux OS group permissions to give to the Lambda function process.source_path (
Optional[str]) – The local absolute path of the device resource. The source path for a device resource can refer only to a character device or block device under/dev.
- 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 local_device_resource_data_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalDeviceResourceDataProperty( group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" )
Attributes
- group_owner_setting
Settings that define additional Linux OS group permissions to give to the Lambda function process.
- source_path
The local absolute path of the device resource.
The source path for a device resource can refer only to a character device or block device under
/dev.
LocalVolumeResourceDataProperty
- class CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty(*, destination_path=None, group_owner_setting=None, source_path=None)
Bases:
objectSettings for a local volume resource, which represents a file or directory on the root file system.
For more information, see Access Local Resources with Lambda Functions in the Developer Guide .
In an CloudFormation template,
LocalVolumeResourceDatacan be used in the`ResourceDataContainer<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html>`_ property type.- Parameters:
destination_path (
Optional[str]) – The absolute local path of the resource in the Lambda environment.group_owner_setting (
Union[IResolvable,GroupOwnerSettingProperty,Dict[str,Any],None]) – Settings that define additional Linux OS group permissions to give to the Lambda function process.source_path (
Optional[str]) – The local absolute path of the volume resource on the host. The source path for a volume resource type cannot start with/sys.
- 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 local_volume_resource_data_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty( destination_path="destinationPath", group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" )
Attributes
- destination_path
The absolute local path of the resource in the Lambda environment.
- group_owner_setting
Settings that define additional Linux OS group permissions to give to the Lambda function process.
- source_path
The local absolute path of the volume resource on the host.
The source path for a volume resource type cannot start with
/sys.
ResourceDataContainerProperty
- class CfnResourceDefinitionVersionPropsMixin.ResourceDataContainerProperty(*, local_device_resource_data=None, local_volume_resource_data=None, s3_machine_learning_model_resource_data=None, sage_maker_machine_learning_model_resource_data=None, secrets_manager_secret_resource_data=None)
Bases:
objectA container for resource data, which defines the resource type.
The container takes only one of the following supported resource data types:
LocalDeviceResourceData,LocalVolumeResourceData,SageMakerMachineLearningModelResourceData,S3MachineLearningModelResourceData, orSecretsManagerSecretResourceData. .. epigraph:Only one resource type can be defined for a ``ResourceDataContainer`` instance.
In an CloudFormation template,
ResourceDataContaineris a property of the`ResourceInstance<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourceinstance.html>`_ property type.- Parameters:
local_device_resource_data (
Union[IResolvable,LocalDeviceResourceDataProperty,Dict[str,Any],None]) – Settings for a local device resource.local_volume_resource_data (
Union[IResolvable,LocalVolumeResourceDataProperty,Dict[str,Any],None]) – Settings for a local volume resource.s3_machine_learning_model_resource_data (
Union[IResolvable,S3MachineLearningModelResourceDataProperty,Dict[str,Any],None]) – Settings for a machine learning resource stored in Amazon S3 .sage_maker_machine_learning_model_resource_data (
Union[IResolvable,SageMakerMachineLearningModelResourceDataProperty,Dict[str,Any],None]) – Settings for a machine learning resource saved as an SageMaker AI training job.secrets_manager_secret_resource_data (
Union[IResolvable,SecretsManagerSecretResourceDataProperty,Dict[str,Any],None]) – Settings for a secret resource.
- 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 resource_data_container_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDataContainerProperty( local_device_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalDeviceResourceDataProperty( group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), local_volume_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty( destination_path="destinationPath", group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), s3_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.S3MachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), s3_uri="s3Uri" ), sage_maker_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SageMakerMachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), sage_maker_job_arn="sageMakerJobArn" ), secrets_manager_secret_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SecretsManagerSecretResourceDataProperty( additional_staging_labels_to_download=["additionalStagingLabelsToDownload"], arn="arn" ) )
Attributes
- local_device_resource_data
Settings for a local device resource.
- local_volume_resource_data
Settings for a local volume resource.
- s3_machine_learning_model_resource_data
Settings for a machine learning resource stored in Amazon S3 .
- sage_maker_machine_learning_model_resource_data
Settings for a machine learning resource saved as an SageMaker AI training job.
- secrets_manager_secret_resource_data
Settings for a secret resource.
ResourceDownloadOwnerSettingProperty
- class CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty(*, group_owner=None, group_permission=None)
Bases:
objectThe owner setting for a downloaded machine learning resource.
For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
In an CloudFormation template,
ResourceDownloadOwnerSettingis the property type of theOwnerSettingproperty for the`S3MachineLearningModelResourceData<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-s3machinelearningmodelresourcedata.html>`_ and`SageMakerMachineLearningModelResourceData<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-sagemakermachinelearningmodelresourcedata.html>`_ property types.- Parameters:
group_owner (
Optional[str]) – The group owner of the machine learning resource. This is the group ID (GID) of an existing Linux OS group on the system. The group’s permissions are added to the Lambda process.group_permission (
Optional[str]) – The permissions that the group owner has to the machine learning resource. Valid values arerw(read-write) orro(read-only).
- 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 resource_download_owner_setting_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" )
Attributes
- group_owner
The group owner of the machine learning resource.
This is the group ID (GID) of an existing Linux OS group on the system. The group’s permissions are added to the Lambda process.
- group_permission
The permissions that the group owner has to the machine learning resource.
Valid values are
rw(read-write) orro(read-only).
ResourceInstanceProperty
- class CfnResourceDefinitionVersionPropsMixin.ResourceInstanceProperty(*, id=None, name=None, resource_data_container=None)
Bases:
objectA local resource, machine learning resource, or secret resource.
For more information, see Access Local Resources with Lambda Functions , Perform Machine Learning Inference , and Deploy Secrets to the AWS IoT Greengrass Core in the Developer Guide .
In an CloudFormation template, the
Resourcesproperty of the`AWS::Greengrass::ResourceDefinitionVersion<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html>`_ resource contains a list ofResourceInstanceproperty types.- Parameters:
id (
Optional[str]) – A descriptive or arbitrary ID for the resource. This value must be unique within the resource definition version. Maximum length is 128 characters with pattern[a-zA-Z0-9:_-]+.name (
Optional[str]) – The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.resource_data_container (
Union[IResolvable,ResourceDataContainerProperty,Dict[str,Any],None]) – A container for resource data. The container takes only one of the following supported resource data types:LocalDeviceResourceData,LocalVolumeResourceData,SageMakerMachineLearningModelResourceData,S3MachineLearningModelResourceData, orSecretsManagerSecretResourceData. .. epigraph:: Only one resource type can be defined for aResourceDataContainerinstance.
- 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 resource_instance_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceInstanceProperty( id="id", name="name", resource_data_container=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDataContainerProperty( local_device_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalDeviceResourceDataProperty( group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), local_volume_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty( destination_path="destinationPath", group_owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.GroupOwnerSettingProperty( auto_add_group_owner=False, group_owner="groupOwner" ), source_path="sourcePath" ), s3_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.S3MachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), s3_uri="s3Uri" ), sage_maker_machine_learning_model_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SageMakerMachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), sage_maker_job_arn="sageMakerJobArn" ), secrets_manager_secret_resource_data=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SecretsManagerSecretResourceDataProperty( additional_staging_labels_to_download=["additionalStagingLabelsToDownload"], arn="arn" ) ) )
Attributes
- id
A descriptive or arbitrary ID for the resource.
This value must be unique within the resource definition version. Maximum length is 128 characters with pattern
[a-zA-Z0-9:_-]+.
- name
The descriptive resource name, which is displayed on the AWS IoT Greengrass console.
Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.
- resource_data_container
A container for resource data.
The container takes only one of the following supported resource data types:
LocalDeviceResourceData,LocalVolumeResourceData,SageMakerMachineLearningModelResourceData,S3MachineLearningModelResourceData, orSecretsManagerSecretResourceData. .. epigraph:Only one resource type can be defined for a ``ResourceDataContainer`` instance.
S3MachineLearningModelResourceDataProperty
- class CfnResourceDefinitionVersionPropsMixin.S3MachineLearningModelResourceDataProperty(*, destination_path=None, owner_setting=None, s3_uri=None)
Bases:
objectSettings for an Amazon S3 machine learning resource.
For more information, see Perform Machine Learning Inference in the Developer Guide .
In an CloudFormation template,
S3MachineLearningModelResourceDatacan be used in the`ResourceDataContainer<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html>`_ property type.- Parameters:
destination_path (
Optional[str]) – The absolute local path of the resource inside the Lambda environment.owner_setting (
Union[IResolvable,ResourceDownloadOwnerSettingProperty,Dict[str,Any],None]) –The owner setting for the downloaded machine learning resource. For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
s3_uri (
Optional[str]) – The URI of the source model in an Amazon S3 bucket. The model package must be intar.gzor.zipformat.
- 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 s3_machine_learning_model_resource_data_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.S3MachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), s3_uri="s3Uri" )
Attributes
- destination_path
The absolute local path of the resource inside the Lambda environment.
- owner_setting
The owner setting for the downloaded machine learning resource.
For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
- s3_uri
The URI of the source model in an Amazon S3 bucket.
The model package must be in
tar.gzor.zipformat.
SageMakerMachineLearningModelResourceDataProperty
- class CfnResourceDefinitionVersionPropsMixin.SageMakerMachineLearningModelResourceDataProperty(*, destination_path=None, owner_setting=None, sage_maker_job_arn=None)
Bases:
objectSettings for an Secrets Manager machine learning resource.
For more information, see Perform Machine Learning Inference in the Developer Guide .
In an CloudFormation template,
SageMakerMachineLearningModelResourceDatacan be used in the`ResourceDataContainer<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html>`_ property type.- Parameters:
destination_path (
Optional[str]) – The absolute local path of the resource inside the Lambda environment.owner_setting (
Union[IResolvable,ResourceDownloadOwnerSettingProperty,Dict[str,Any],None]) –The owner setting for the downloaded machine learning resource. For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
sage_maker_job_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the Amazon SageMaker AI training job that represents the source model.
- 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 sage_maker_machine_learning_model_resource_data_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SageMakerMachineLearningModelResourceDataProperty( destination_path="destinationPath", owner_setting=greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.ResourceDownloadOwnerSettingProperty( group_owner="groupOwner", group_permission="groupPermission" ), sage_maker_job_arn="sageMakerJobArn" )
Attributes
- destination_path
The absolute local path of the resource inside the Lambda environment.
- owner_setting
The owner setting for the downloaded machine learning resource.
For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
- sage_maker_job_arn
The Amazon Resource Name (ARN) of the Amazon SageMaker AI training job that represents the source model.
SecretsManagerSecretResourceDataProperty
- class CfnResourceDefinitionVersionPropsMixin.SecretsManagerSecretResourceDataProperty(*, additional_staging_labels_to_download=None, arn=None)
Bases:
objectSettings for a secret resource, which references a secret from AWS Secrets Manager .
AWS IoT Greengrass stores a local, encrypted copy of the secret on the Greengrass core, where it can be securely accessed by connectors and Lambda functions. For more information, see Deploy Secrets to the AWS IoT Greengrass Core in the Developer Guide .
In an CloudFormation template,
SecretsManagerSecretResourceDatacan be used in the`ResourceDataContainer<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html>`_ property type.- Parameters:
additional_staging_labels_to_download (
Optional[Sequence[str]]) – The staging labels whose values you want to make available on the core, in addition toAWSCURRENT.arn (
Optional[str]) – The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core. The value of the secret’s latest version (represented by theAWSCURRENTstaging label) is included by default.
- 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 secrets_manager_secret_resource_data_property = greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.SecretsManagerSecretResourceDataProperty( additional_staging_labels_to_download=["additionalStagingLabelsToDownload"], arn="arn" )
Attributes
- additional_staging_labels_to_download
The staging labels whose values you want to make available on the core, in addition to
AWSCURRENT.
- arn
The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core.
The value of the secret’s latest version (represented by the
AWSCURRENTstaging label) is included by default.