Class CfnResourceDefinitionProps
Properties for defining a CfnResourceDefinition
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceDefinitionProps : Object, ICfnResourceDefinitionProps
Syntax (vb)
Public Class CfnResourceDefinitionProps
Inherits Object
Implements ICfnResourceDefinitionProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var tags;
var cfnResourceDefinitionProps = new CfnResourceDefinitionProps {
Name = "name",
// the properties below are optional
InitialVersion = new ResourceDefinitionVersionProperty {
Resources = new [] { new ResourceInstanceProperty {
Id = "id",
Name = "name",
ResourceDataContainer = new ResourceDataContainerProperty {
LocalDeviceResourceData = new LocalDeviceResourceDataProperty {
SourcePath = "sourcePath",
// the properties below are optional
GroupOwnerSetting = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
}
},
LocalVolumeResourceData = new LocalVolumeResourceDataProperty {
DestinationPath = "destinationPath",
SourcePath = "sourcePath",
// the properties below are optional
GroupOwnerSetting = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
}
},
S3MachineLearningModelResourceData = new S3MachineLearningModelResourceDataProperty {
DestinationPath = "destinationPath",
S3Uri = "s3Uri",
// the properties below are optional
OwnerSetting = new ResourceDownloadOwnerSettingProperty {
GroupOwner = "groupOwner",
GroupPermission = "groupPermission"
}
},
SageMakerMachineLearningModelResourceData = new SageMakerMachineLearningModelResourceDataProperty {
DestinationPath = "destinationPath",
SageMakerJobArn = "sageMakerJobArn",
// the properties below are optional
OwnerSetting = new ResourceDownloadOwnerSettingProperty {
GroupOwner = "groupOwner",
GroupPermission = "groupPermission"
}
},
SecretsManagerSecretResourceData = new SecretsManagerSecretResourceDataProperty {
Arn = "arn",
// the properties below are optional
AdditionalStagingLabelsToDownload = new [] { "additionalStagingLabelsToDownload" }
}
}
} }
},
Tags = tags
};
Synopsis
Constructors
CfnResourceDefinitionProps() |
Properties
InitialVersion | The resource definition version to include when the resource definition is created. |
Name | The name of the resource definition. |
Tags | Application-specific metadata to attach to the resource definition. |
Constructors
CfnResourceDefinitionProps()
public CfnResourceDefinitionProps()
Properties
InitialVersion
The resource definition version to include when the resource definition is created.
public object InitialVersion { get; set; }
Property Value
System.Object
Remarks
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.
Name
The name of the resource definition.
public string Name { get; set; }
Property Value
System.String
Remarks
Tags
Application-specific metadata to attach to the resource definition.
public object Tags { get; set; }
Property Value
System.Object
Remarks
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"
}