Interface CfnApp.ResourceMappingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApp.ResourceMappingProperty.Jsii$Proxy
- Enclosing class:
CfnApp
@Stability(Stable)
public static interface CfnApp.ResourceMappingProperty
extends software.amazon.jsii.JsiiSerializable
Defines a resource mapping.
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.resiliencehub.*;
ResourceMappingProperty resourceMappingProperty = ResourceMappingProperty.builder()
.mappingType("mappingType")
.physicalResourceId(PhysicalResourceIdProperty.builder()
.identifier("identifier")
.type("type")
// the properties below are optional
.awsAccountId("awsAccountId")
.awsRegion("awsRegion")
.build())
// the properties below are optional
.eksSourceName("eksSourceName")
.logicalStackName("logicalStackName")
.resourceName("resourceName")
.terraformSourceName("terraformSourceName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApp.ResourceMappingPropertystatic final classAn implementation forCfnApp.ResourceMappingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default Stringdefault StringThe name of the AWS CloudFormation stack this resource is mapped to.Specifies the type of resource mapping.Identifier of the physical resource.default StringName of the resource that the resource is mapped to.default StringThe short name of the Terraform source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMappingType
Specifies the type of resource mapping.- AppRegistryApp - The resource is mapped to another application. The name of the application is contained in the
appRegistryAppNameproperty. - CfnStack - The resource is mapped to a AWS CloudFormation stack. The name of the AWS CloudFormation stack is contained in the
logicalStackNameproperty. - Resource - The resource is mapped to another resource. The name of the resource is contained in the
resourceNameproperty. - ResourceGroup - The resource is mapped to AWS Resource Groups . The name of the resource group is contained in the
resourceGroupNameproperty.
- See Also:
- AppRegistryApp - The resource is mapped to another application. The name of the application is contained in the
-
getPhysicalResourceId
Identifier of the physical resource.- See Also:
-
getEksSourceName
- See Also:
-
getLogicalStackName
The name of the AWS CloudFormation stack this resource is mapped to.- See Also:
-
getResourceName
Name of the resource that the resource is mapped to.- See Also:
-
getTerraformSourceName
The short name of the Terraform source.- See Also:
-
builder
-