@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.719Z") @Stability(value=Stable) public class CfnResourceDefinitionVersion extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
CfnResourceDefinitionVersion cfnResourceDefinitionVersion = CfnResourceDefinitionVersion.Builder.create(this, "MyCfnResourceDefinitionVersion")
.resourceDefinitionId("resourceDefinitionId")
.resources(List.of(ResourceInstanceProperty.builder()
.id("id")
.name("name")
.resourceDataContainer(ResourceDataContainerProperty.builder()
.localDeviceResourceData(LocalDeviceResourceDataProperty.builder()
.sourcePath("sourcePath")
// the properties below are optional
.groupOwnerSetting(GroupOwnerSettingProperty.builder()
.autoAddGroupOwner(false)
// the properties below are optional
.groupOwner("groupOwner")
.build())
.build())
.localVolumeResourceData(LocalVolumeResourceDataProperty.builder()
.destinationPath("destinationPath")
.sourcePath("sourcePath")
// the properties below are optional
.groupOwnerSetting(GroupOwnerSettingProperty.builder()
.autoAddGroupOwner(false)
// the properties below are optional
.groupOwner("groupOwner")
.build())
.build())
.s3MachineLearningModelResourceData(S3MachineLearningModelResourceDataProperty.builder()
.destinationPath("destinationPath")
.s3Uri("s3Uri")
// the properties below are optional
.ownerSetting(ResourceDownloadOwnerSettingProperty.builder()
.groupOwner("groupOwner")
.groupPermission("groupPermission")
.build())
.build())
.sageMakerMachineLearningModelResourceData(SageMakerMachineLearningModelResourceDataProperty.builder()
.destinationPath("destinationPath")
.sageMakerJobArn("sageMakerJobArn")
// the properties below are optional
.ownerSetting(ResourceDownloadOwnerSettingProperty.builder()
.groupOwner("groupOwner")
.groupPermission("groupPermission")
.build())
.build())
.secretsManagerSecretResourceData(SecretsManagerSecretResourceDataProperty.builder()
.arn("arn")
// the properties below are optional
.additionalStagingLabelsToDownload(List.of("additionalStagingLabelsToDownload"))
.build())
.build())
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnResourceDefinitionVersion.Builder
A fluent builder for
CfnResourceDefinitionVersion. |
static interface |
CfnResourceDefinitionVersion.GroupOwnerSettingProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.LocalDeviceResourceDataProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.ResourceDataContainerProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.ResourceInstanceProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty
Example:
|
static interface |
CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnResourceDefinitionVersion(software.constructs.Construct scope,
String id,
CfnResourceDefinitionVersionProps props)
Create a new `AWS::Greengrass::ResourceDefinitionVersion`.
|
protected |
CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getResourceDefinitionId()
`AWS::Greengrass::ResourceDefinitionVersion.ResourceDefinitionId`.
|
Object |
getResources()
`AWS::Greengrass::ResourceDefinitionVersion.Resources`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setResourceDefinitionId(String value)
`AWS::Greengrass::ResourceDefinitionVersion.ResourceDefinitionId`.
|
void |
setResources(IResolvable value)
`AWS::Greengrass::ResourceDefinitionVersion.Resources`.
|
void |
setResources(List<Object> value)
`AWS::Greengrass::ResourceDefinitionVersion.Resources`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnResourceDefinitionVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnResourceDefinitionVersionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getResourceDefinitionId()
@Stability(value=Stable)
public void setResourceDefinitionId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getResources()
@Stability(value=Stable)
public void setResources(@NotNull
IResolvable value)
Copyright © 2021. All rights reserved.