Skip to content

Create App Version Resource

resiliencehub_create_app_version_resource R Documentation

Adds a resource to the Resilience Hub application and assigns it to the specified Application Components

Description

Adds a resource to the Resilience Hub application and assigns it to the specified Application Components. If you specify a new Application Component, Resilience Hub will automatically create the Application Component.

  • This action has no effect outside Resilience Hub.

  • This API updates the Resilience Hub application draft version. To use this resource for running resiliency assessments, you must publish the Resilience Hub application using the publish_app_version API.

  • To update application version with new physicalResourceID, you must call resolve_app_version_resources API.

Usage

resiliencehub_create_app_version_resource(additionalInfo, appArn,
  appComponents, awsAccountId, awsRegion, clientToken, logicalResourceId,
  physicalResourceId, resourceName, resourceType)

Arguments

additionalInfo

Currently, there is no supported additional information for resources.

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.

appComponents

[required] List of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.

awsAccountId

Amazon Web Services account that owns the physical resource.

awsRegion

Amazon Web Services region that owns the physical resource.

clientToken

Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.

logicalResourceId

[required] Logical identifier of the resource.

physicalResourceId

[required] Physical identifier of the resource.

resourceName

Name of the resource.

resourceType

[required] Type of resource.

Value

A list with the following syntax:

list(
  appArn = "string",
  appVersion = "string",
  physicalResource = list(
    additionalInfo = list(
      list(
        "string"
      )
    ),
    appComponents = list(
      list(
        additionalInfo = list(
          list(
            "string"
          )
        ),
        id = "string",
        name = "string",
        type = "string"
      )
    ),
    excluded = TRUE|FALSE,
    logicalResourceId = list(
      eksSourceName = "string",
      identifier = "string",
      logicalStackName = "string",
      resourceGroupName = "string",
      terraformSourceName = "string"
    ),
    parentResourceName = "string",
    physicalResourceId = list(
      awsAccountId = "string",
      awsRegion = "string",
      identifier = "string",
      type = "Arn"|"Native"
    ),
    resourceName = "string",
    resourceType = "string",
    sourceType = "AppTemplate"|"Discovered"
  )
)

Request syntax

svc$create_app_version_resource(
  additionalInfo = list(
    list(
      "string"
    )
  ),
  appArn = "string",
  appComponents = list(
    "string"
  ),
  awsAccountId = "string",
  awsRegion = "string",
  clientToken = "string",
  logicalResourceId = list(
    eksSourceName = "string",
    identifier = "string",
    logicalStackName = "string",
    resourceGroupName = "string",
    terraformSourceName = "string"
  ),
  physicalResourceId = "string",
  resourceName = "string",
  resourceType = "string"
)