Skip to content

Import Resources To Draft App Version

resiliencehub_import_resources_to_draft_app_version R Documentation

Imports resources to Resilience Hub application draft version from different input sources

Description

Imports resources to Resilience Hub application draft version from different input sources. For more information about the input sources supported by Resilience Hub, see Discover the structure and describe your Resilience Hub application.

Usage

resiliencehub_import_resources_to_draft_app_version(appArn, eksSources,
  importStrategy, sourceArns, terraformSources)

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.

eksSources

The input sources of the Amazon Elastic Kubernetes Service resources you need to import.

importStrategy

The import strategy you would like to set to import resources into Resilience Hub application.

sourceArns

The Amazon Resource Names (ARNs) for the resources.

terraformSources

A list of terraform file s3 URLs you need to import.

Value

A list with the following syntax:

list(
  appArn = "string",
  appVersion = "string",
  eksSources = list(
    list(
      eksClusterArn = "string",
      namespaces = list(
        "string"
      )
    )
  ),
  sourceArns = list(
    "string"
  ),
  status = "Pending"|"InProgress"|"Failed"|"Success",
  terraformSources = list(
    list(
      s3StateFileUrl = "string"
    )
  )
)

Request syntax

svc$import_resources_to_draft_app_version(
  appArn = "string",
  eksSources = list(
    list(
      eksClusterArn = "string",
      namespaces = list(
        "string"
      )
    )
  ),
  importStrategy = "AddOnly"|"ReplaceAll",
  sourceArns = list(
    "string"
  ),
  terraformSources = list(
    list(
      s3StateFileUrl = "string"
    )
  )
)