public static final class CfnResourceDefinition.ResourceInstanceProperty.Builder
extends java.lang.Object
CfnResourceDefinition.ResourceInstanceProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnResourceDefinition.ResourceInstanceProperty |
build()
Builds the configured instance.
|
CfnResourceDefinition.ResourceInstanceProperty.Builder |
id(java.lang.String id)
Sets the value of
CfnResourceDefinition.ResourceInstanceProperty.getId() |
CfnResourceDefinition.ResourceInstanceProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnResourceDefinition.ResourceInstanceProperty.getName() |
CfnResourceDefinition.ResourceInstanceProperty.Builder |
resourceDataContainer(CfnResourceDefinition.ResourceDataContainerProperty resourceDataContainer)
|
CfnResourceDefinition.ResourceInstanceProperty.Builder |
resourceDataContainer(IResolvable resourceDataContainer)
|
public CfnResourceDefinition.ResourceInstanceProperty.Builder id(java.lang.String id)
CfnResourceDefinition.ResourceInstanceProperty.getId()
id
- A descriptive or arbitrary ID for the resource. This parameter is required.
This value must be unique within the resource definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+
.this
public CfnResourceDefinition.ResourceInstanceProperty.Builder name(java.lang.String name)
CfnResourceDefinition.ResourceInstanceProperty.getName()
name
- The descriptive resource name, which is displayed on the AWS IoT Greengrass console. This parameter is required.
Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.this
public CfnResourceDefinition.ResourceInstanceProperty.Builder resourceDataContainer(IResolvable resourceDataContainer)
resourceDataContainer
- A container for resource data. This parameter is required.
The container takes only one of the following supported resource data types: LocalDeviceResourceData
, LocalVolumeResourceData
, SageMakerMachineLearningModelResourceData
, S3MachineLearningModelResourceData
, or SecretsManagerSecretResourceData
.
Only one resource type can be defined for a
ResourceDataContainer
instance.
this
public CfnResourceDefinition.ResourceInstanceProperty.Builder resourceDataContainer(CfnResourceDefinition.ResourceDataContainerProperty resourceDataContainer)
resourceDataContainer
- A container for resource data. This parameter is required.
The container takes only one of the following supported resource data types: LocalDeviceResourceData
, LocalVolumeResourceData
, SageMakerMachineLearningModelResourceData
, S3MachineLearningModelResourceData
, or SecretsManagerSecretResourceData
.
Only one resource type can be defined for a
ResourceDataContainer
instance.
this
public CfnResourceDefinition.ResourceInstanceProperty build()
CfnResourceDefinition.ResourceInstanceProperty
java.lang.NullPointerException
- if any required attribute was not provided