Skip to content

Add Draft App Version Resource Mappings

resiliencehub_add_draft_app_version_resource_mappings R Documentation

Adds the source of resource-maps to the draft version of an application

Description

Adds the source of resource-maps to the draft version of an application. During assessment, Resilience Hub will use these resource-maps to resolve the latest physical ID for each resource in the application template. For more information about different types of resources supported by Resilience Hub and how to add them in your application, see Step 2: How is your application managed? in the Resilience Hub User Guide.

Usage

resiliencehub_add_draft_app_version_resource_mappings(appArn,
  resourceMappings)

Arguments

appArn

[required] Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

resourceMappings

[required] Mappings used to map logical resources from the template to physical resources. You can use the mapping type CFN_STACK if the application template uses a logical stack name. Or you can map individual resources by using the mapping type RESOURCE. We recommend using the mapping type CFN_STACK if the application is backed by a CloudFormation stack.

Value

A list with the following syntax:

list(
  appArn = "string",
  appVersion = "string",
  resourceMappings = list(
    list(
      appRegistryAppName = "string",
      eksSourceName = "string",
      logicalStackName = "string",
      mappingType = "CfnStack"|"Resource"|"AppRegistryApp"|"ResourceGroup"|"Terraform"|"EKS",
      physicalResourceId = list(
        awsAccountId = "string",
        awsRegion = "string",
        identifier = "string",
        type = "Arn"|"Native"
      ),
      resourceGroupName = "string",
      resourceName = "string",
      terraformSourceName = "string"
    )
  )
)

Request syntax

svc$add_draft_app_version_resource_mappings(
  appArn = "string",
  resourceMappings = list(
    list(
      appRegistryAppName = "string",
      eksSourceName = "string",
      logicalStackName = "string",
      mappingType = "CfnStack"|"Resource"|"AppRegistryApp"|"ResourceGroup"|"Terraform"|"EKS",
      physicalResourceId = list(
        awsAccountId = "string",
        awsRegion = "string",
        identifier = "string",
        type = "Arn"|"Native"
      ),
      resourceGroupName = "string",
      resourceName = "string",
      terraformSourceName = "string"
    )
  )
)