interface CfnResourceDefinitionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Greengrass.CfnResourceDefinitionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinitionProps |
Java | software.amazon.awscdk.services.greengrass.CfnResourceDefinitionProps |
Python | aws_cdk.aws_greengrass.CfnResourceDefinitionProps |
TypeScript | aws-cdk-lib » aws_greengrass » CfnResourceDefinitionProps |
Properties for defining a CfnResourceDefinition
.
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 cfnResourceDefinitionProps: greengrass.CfnResourceDefinitionProps = {
name: 'name',
// the properties below are optional
initialVersion: {
resources: [{
id: 'id',
name: 'name',
resourceDataContainer: {
localDeviceResourceData: {
sourcePath: 'sourcePath',
// the properties below are optional
groupOwnerSetting: {
autoAddGroupOwner: false,
// the properties below are optional
groupOwner: 'groupOwner',
},
},
localVolumeResourceData: {
destinationPath: 'destinationPath',
sourcePath: 'sourcePath',
// the properties below are optional
groupOwnerSetting: {
autoAddGroupOwner: false,
// the properties below are optional
groupOwner: 'groupOwner',
},
},
s3MachineLearningModelResourceData: {
destinationPath: 'destinationPath',
s3Uri: 's3Uri',
// the properties below are optional
ownerSetting: {
groupOwner: 'groupOwner',
groupPermission: 'groupPermission',
},
},
sageMakerMachineLearningModelResourceData: {
destinationPath: 'destinationPath',
sageMakerJobArn: 'sageMakerJobArn',
// the properties below are optional
ownerSetting: {
groupOwner: 'groupOwner',
groupPermission: 'groupPermission',
},
},
secretsManagerSecretResourceData: {
arn: 'arn',
// the properties below are optional
additionalStagingLabelsToDownload: ['additionalStagingLabelsToDownload'],
},
},
}],
},
tags: tags,
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name of the resource definition. |
initial | IResolvable | Resource | The resource definition version to include when the resource definition is created. |
tags? | any | Application-specific metadata to attach to the resource definition. |
name
Type:
string
The name of the resource definition.
initialVersion?
Type:
IResolvable
|
Resource
(optional)
The resource definition version to include when the resource definition is created.
A resource definition version contains a list of resource instance
property types.
To associate a resource definition version after the resource definition is created, create an
AWS::Greengrass::ResourceDefinitionVersion
resource and specify the ID of this resource definition.
tags?
Type:
any
(optional)
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 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"
}