Show / Hide Table of Contents

Class CfnResourceDefinitionVersion

The AWS::Greengrass::ResourceDefinitionVersion resource represents a resource definition version for AWS IoT Greengrass .

Inheritance
System.Object
CfnElement
CfnRefElement
CfnResource
CfnResourceDefinitionVersion
Implements
IInspectable
Inherited Members
CfnResource.IsCfnResource(Object)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependency(CfnResource)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String, Nullable<ResolutionTypeHint>)
CfnResource.GetMetadata(String)
CfnResource.ObtainDependencies()
CfnResource.ObtainResourceDependencies()
CfnResource.RemoveDependency(CfnResource)
CfnResource.ReplaceDependency(CfnResource, CfnResource)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnResource.UpdatedProperties
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceDefinitionVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnResourceDefinitionVersion
    Inherits CfnResource
    Implements IInspectable
Remarks

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

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 .

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 .

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

CloudformationResource: AWS::Greengrass::ResourceDefinitionVersion

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 cfnResourceDefinitionVersion = new CfnResourceDefinitionVersion(this, "MyCfnResourceDefinitionVersion", new CfnResourceDefinitionVersionProps {
    ResourceDefinitionId = "resourceDefinitionId",
    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

CfnResourceDefinitionVersion(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CfnResourceDefinitionVersion(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

CfnResourceDefinitionVersion(Construct, String, ICfnResourceDefinitionVersionProps)

Properties

AttrId
CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties
ResourceDefinitionId

The ID of the resource definition associated with this version.

Resources

The resources in this version.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

RenderProperties(IDictionary<String, Object>)

Constructors

CfnResourceDefinitionVersion(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CfnResourceDefinitionVersion(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CfnResourceDefinitionVersion(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CfnResourceDefinitionVersion(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

CfnResourceDefinitionVersion(Construct, String, ICfnResourceDefinitionVersionProps)

public CfnResourceDefinitionVersion(Construct scope, string id, ICfnResourceDefinitionVersionProps props)
Parameters
scope Constructs.Construct

Scope in which this resource is defined.

id System.String

Construct identifier for this resource (unique in its scope).

props ICfnResourceDefinitionVersionProps

Resource properties.

Properties

AttrId

public virtual string AttrId { get; }
Property Value

System.String

Remarks

CloudformationAttribute: Id

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

System.String

CfnProperties

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

System.Collections.Generic.IDictionary<System.String, System.Object>

Overrides
CfnResource.CfnProperties

ResourceDefinitionId

The ID of the resource definition associated with this version.

public virtual string ResourceDefinitionId { get; set; }
Property Value

System.String

Resources

The resources in this version.

public virtual object Resources { get; set; }
Property Value

System.Object

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)
Parameters
inspector TreeInspector

tree inspector to collect and process attributes.

RenderProperties(IDictionary<String, Object>)

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns

System.Collections.Generic.IDictionary<System.String, System.Object>

Overrides
CfnResource.RenderProperties(IDictionary<String, Object>)

Implements

IInspectable
Back to top Generated by DocFX