Show / Hide Table of Contents

Class CfnResourceDefinition.ResourceDefinitionVersionProperty

A resource definition version contains a list of resources. (In AWS CloudFormation , resources are named resource instances .).

Inheritance
System.Object
CfnResourceDefinition.ResourceDefinitionVersionProperty
Implements
CfnResourceDefinition.IResourceDefinitionVersionProperty
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class ResourceDefinitionVersionProperty : Object, CfnResourceDefinition.IResourceDefinitionVersionProperty
Syntax (vb)
Public Class ResourceDefinitionVersionProperty
    Inherits Object
    Implements CfnResourceDefinition.IResourceDefinitionVersionProperty
Remarks

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 .

In an AWS CloudFormation template, ResourceDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::ResourceDefinition resource.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourcedefinitionversion.html

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 resourceDefinitionVersionProperty = 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" }
            }
        }
    } }
};

Synopsis

Constructors

ResourceDefinitionVersionProperty()

Properties

Resources

The resources in this version.

Constructors

ResourceDefinitionVersionProperty()

public ResourceDefinitionVersionProperty()

Properties

Resources

The resources in this version.

public object Resources { get; set; }
Property Value

System.Object

Remarks

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

Implements

CfnResourceDefinition.IResourceDefinitionVersionProperty
Back to top Generated by DocFX