Class CfnAppProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppProps>
- Enclosing interface:
- CfnAppProps
CfnAppProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappAssessmentSchedule
(String appAssessmentSchedule) Sets the value ofCfnAppProps.getAppAssessmentSchedule()
appTemplateBody
(String appTemplateBody) Sets the value ofCfnAppProps.getAppTemplateBody()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnAppProps.getDescription()
Sets the value ofCfnAppProps.getName()
resiliencyPolicyArn
(String resiliencyPolicyArn) Sets the value ofCfnAppProps.getResiliencyPolicyArn()
resourceMappings
(List<? extends Object> resourceMappings) Sets the value ofCfnAppProps.getResourceMappings()
resourceMappings
(IResolvable resourceMappings) Sets the value ofCfnAppProps.getResourceMappings()
Sets the value ofCfnAppProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appTemplateBody
Sets the value ofCfnAppProps.getAppTemplateBody()
- Parameters:
appTemplateBody
- A JSON string that provides information about your application structure. This parameter is required. To learn more about theappTemplateBody
template, see the sample template provided in the Examples section.The
appTemplateBody
JSON string has the following structure:resources
The list of logical resources that needs to be included in the AWS Resilience Hub application.
Type: Array
Don't add the resources that you want to exclude.
Each
resources
array item includes the following fields:logicalResourceId
The logical identifier of the resource.
Type: Object
Each
logicalResourceId
object includes the following fields:identifier
The identifier of the resource.
Type: String
logicalStackName
The name of the AWS CloudFormation stack this resource belongs to.
Type: String
resourceGroupName
The name of the resource group this resource belongs to.
Type: String
terraformSourceName
The name of the Terraform S3 state file this resource belongs to.
Type: String
eksSourceName
The name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
Type: String
type
The type of resource.
Type: string
name
The name of the resource.
Type: String
additionalInfo
Additional configuration parameters for an AWS Resilience Hub application. If you want to implement
additionalInfo
through the AWS Resilience Hub console rather than using an API call, see Configure the application configuration parameters .Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
"failover-regions"
Value:
"[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
appComponents
The list of Application Components (AppComponent) that this resource belongs to. If an AppComponent is not part of the AWS Resilience Hub application, it will be added.
Type: Array
Each
appComponents
array item includes the following fields:name
The name of the AppComponent.
Type: String
type
The type of AppComponent. For more information about the types of AppComponent, see Grouping resources in an AppComponent .
Type: String
resourceNames
The list of included resources that are assigned to the AppComponent.
Type: Array of strings
additionalInfo
Additional configuration parameters for an AWS Resilience Hub application. If you want to implement
additionalInfo
through the AWS Resilience Hub console rather than using an API call, see Configure the application configuration parameters .Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
"failover-regions"
Value:
"[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
excludedResources
The list of logical resource identifiers to be excluded from the application.
Type: Array
Don't add the resources that you want to include.
Each
excludedResources
array item includes the following fields:logicalResourceIds
The logical identifier of the resource.
Type: Object
You can configure only one of the following fields:
logicalStackName
resourceGroupName
terraformSourceName
eksSourceName
Each
logicalResourceIds
object includes the following fields:identifier
The identifier of the resource.
Type: String
logicalStackName
The name of the AWS CloudFormation stack this resource belongs to.
Type: String
resourceGroupName
The name of the resource group this resource belongs to.
Type: String
terraformSourceName
The name of the Terraform S3 state file this resource belongs to.
Type: String
eksSourceName
The name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
Type: String
version
The AWS Resilience Hub application version.
additionalInfo
Additional configuration parameters for an AWS Resilience Hub application. If you want to implement
additionalInfo
through the AWS Resilience Hub console rather than using an API call, see Configure the application configuration parameters .Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
"failover-regions"
Value:
"[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
- Returns:
this
-
name
Sets the value ofCfnAppProps.getName()
- Parameters:
name
- The name for the application. This parameter is required.- Returns:
this
-
resourceMappings
Sets the value ofCfnAppProps.getResourceMappings()
- Parameters:
resourceMappings
- An array of ResourceMapping objects. This parameter is required.- Returns:
this
-
resourceMappings
@Stability(Stable) public CfnAppProps.Builder resourceMappings(List<? extends Object> resourceMappings) Sets the value ofCfnAppProps.getResourceMappings()
- Parameters:
resourceMappings
- An array of ResourceMapping objects. This parameter is required.- Returns:
this
-
appAssessmentSchedule
Sets the value ofCfnAppProps.getAppAssessmentSchedule()
- Parameters:
appAssessmentSchedule
- Assessment execution schedule with 'Daily' or 'Disabled' values.- Returns:
this
-
description
Sets the value ofCfnAppProps.getDescription()
- Parameters:
description
- The optional description for an app.- Returns:
this
-
resiliencyPolicyArn
Sets the value ofCfnAppProps.getResiliencyPolicyArn()
- Parameters:
resiliencyPolicyArn
- The Amazon Resource Name (ARN) of the resiliency policy.- Returns:
this
-
tags
Sets the value ofCfnAppProps.getTags()
- Parameters:
tags
- The tags assigned to the resource. A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAppProps>
- Returns:
- a new instance of
CfnAppProps
- Throws:
NullPointerException
- if any required attribute was not provided
-