aws-cdk-lib.aws_resiliencehub.CfnApp.ResourceMappingProperty

interface ResourceMappingProperty

LanguageType name
.NETAmazon.CDK.AWS.ResilienceHub.CfnApp.ResourceMappingProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsresiliencehub#CfnApp_ResourceMappingProperty
Javasoftware.amazon.awscdk.services.resiliencehub.CfnApp.ResourceMappingProperty
Pythonaws_cdk.aws_resiliencehub.CfnApp.ResourceMappingProperty
TypeScript aws-cdk-lib » aws_resiliencehub » CfnApp » ResourceMappingProperty

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 { aws_resiliencehub as resiliencehub } from 'aws-cdk-lib';
const resourceMappingProperty: resiliencehub.CfnApp.ResourceMappingProperty = {
  mappingType: 'mappingType',
  physicalResourceId: {
    identifier: 'identifier',
    type: 'type',

    // the properties below are optional
    awsAccountId: 'awsAccountId',
    awsRegion: 'awsRegion',
  },

  // the properties below are optional
  eksSourceName: 'eksSourceName',
  logicalStackName: 'logicalStackName',
  resourceName: 'resourceName',
  terraformSourceName: 'terraformSourceName',
};

Properties

NameTypeDescription
mappingTypestringSpecifies the type of resource mapping.
physicalResourceIdIResolvable | PhysicalResourceIdPropertyThe identifier of this resource.
eksSourceName?stringCfnApp.ResourceMappingProperty.EksSourceName.
logicalStackName?stringThe name of the CloudFormation stack this resource is mapped to.
resourceName?stringThe name of the resource this resource is mapped to.
terraformSourceName?stringThe short name of the Terraform source.

mappingType

Type: string

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.

physicalResourceId

Type: IResolvable | PhysicalResourceIdProperty

The identifier of this resource.


eksSourceName?

Type: string (optional)

CfnApp.ResourceMappingProperty.EksSourceName.


logicalStackName?

Type: string (optional)

The name of the CloudFormation stack this resource is mapped to.


resourceName?

Type: string (optional)

The name of the resource this resource is mapped to.


terraformSourceName?

Type: string (optional)

The short name of the Terraform source.