Class CfnApp.ResourceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnApp.ResourceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.ResourceMappingProperty>
- Enclosing interface:
- CfnApp.ResourceMappingProperty
@Stability(Stable)
public static final class CfnApp.ResourceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.ResourceMappingProperty>
A builder for
CfnApp.ResourceMappingProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.eksSourceName
(String eksSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getEksSourceName()
logicalStackName
(String logicalStackName) Sets the value ofCfnApp.ResourceMappingProperty.getLogicalStackName()
mappingType
(String mappingType) Sets the value ofCfnApp.ResourceMappingProperty.getMappingType()
physicalResourceId
(IResolvable physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
physicalResourceId
(CfnApp.PhysicalResourceIdProperty physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
resourceName
(String resourceName) Sets the value ofCfnApp.ResourceMappingProperty.getResourceName()
terraformSourceName
(String terraformSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getTerraformSourceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mappingType
Sets the value ofCfnApp.ResourceMappingProperty.getMappingType()
- Parameters:
mappingType
- Specifies the type of resource mapping. This parameter is required. Valid Values: CfnStack | Resource | AppRegistryApp | ResourceGroup | Terraform- AppRegistryApp - The resource is mapped to another application. The name of the application is contained in the
appRegistryAppName
property. - CfnStack - The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the
logicalStackName
property. - Resource - The resource is mapped to another resource. The name of the resource is contained in the
resourceName
property. - ResourceGroup - The resource is mapped to a resource group. The name of the resource group is contained in the
resourceGroupName
property.
- AppRegistryApp - The resource is mapped to another application. The name of the application is contained in the
- Returns:
this
-
physicalResourceId
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder physicalResourceId(IResolvable physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
- Parameters:
physicalResourceId
- The identifier of this resource. This parameter is required.- Returns:
this
-
physicalResourceId
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder physicalResourceId(CfnApp.PhysicalResourceIdProperty physicalResourceId) Sets the value ofCfnApp.ResourceMappingProperty.getPhysicalResourceId()
- Parameters:
physicalResourceId
- The identifier of this resource. This parameter is required.- Returns:
this
-
eksSourceName
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder eksSourceName(String eksSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getEksSourceName()
- Parameters:
eksSourceName
-CfnApp.ResourceMappingProperty.EksSourceName
.- Returns:
this
-
logicalStackName
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder logicalStackName(String logicalStackName) Sets the value ofCfnApp.ResourceMappingProperty.getLogicalStackName()
- Parameters:
logicalStackName
- The name of the CloudFormation stack this resource is mapped to.- Returns:
this
-
resourceName
Sets the value ofCfnApp.ResourceMappingProperty.getResourceName()
- Parameters:
resourceName
- The name of the resource this resource is mapped to.- Returns:
this
-
terraformSourceName
@Stability(Stable) public CfnApp.ResourceMappingProperty.Builder terraformSourceName(String terraformSourceName) Sets the value ofCfnApp.ResourceMappingProperty.getTerraformSourceName()
- Parameters:
terraformSourceName
- The short name of the Terraform source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApp.ResourceMappingProperty>
- Returns:
- a new instance of
CfnApp.ResourceMappingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-