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();
 
  • Method Details

    • getMappingType

      @Stability(Stable) @NotNull String getMappingType()
      Specifies the type of resource mapping.

      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.
    • getPhysicalResourceId

      @Stability(Stable) @NotNull Object getPhysicalResourceId()
      The identifier of this resource.
    • getEksSourceName

      @Stability(Stable) @Nullable default String getEksSourceName()
      CfnApp.ResourceMappingProperty.EksSourceName.
    • getLogicalStackName

      @Stability(Stable) @Nullable default String getLogicalStackName()
      The name of the CloudFormation stack this resource is mapped to.
    • getResourceName

      @Stability(Stable) @Nullable default String getResourceName()
      The name of the resource this resource is mapped to.
    • getTerraformSourceName

      @Stability(Stable) @Nullable default String getTerraformSourceName()
      The short name of the Terraform source.
    • builder

      @Stability(Stable) static CfnApp.ResourceMappingProperty.Builder builder()
      Returns:
      a CfnApp.ResourceMappingProperty.Builder of CfnApp.ResourceMappingProperty