@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.563Z") @Stability(value=Stable) public class CfnApp extends CfnResource implements IInspectable
Creates a Resilience Hub application. A Resilience Hub application is a collection of AWS resources structured to prevent and recover AWS application disruptions. To describe a Resilience Hub application, you provide an application name, resources from one or more–up to five– AWS CloudFormation stacks, and an appropriate resiliency policy.
After you create a Resilience Hub application, you publish it so that you can run a resiliency assessment on it. You can then use recommendations from the assessment to improve resiliency by running another assessment, comparing results, and then iterating the process until you achieve your goals for recovery time objective (RTO) and recovery point objective (RPO).
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.resiliencehub.*;
CfnApp cfnApp = CfnApp.Builder.create(this, "MyCfnApp")
.appTemplateBody("appTemplateBody")
.name("name")
.resourceMappings(List.of(ResourceMappingProperty.builder()
.mappingType("mappingType")
.physicalResourceId(PhysicalResourceIdProperty.builder()
.identifier("identifier")
.type("type")
// the properties below are optional
.awsAccountId("awsAccountId")
.awsRegion("awsRegion")
.build())
// the properties below are optional
.logicalStackName("logicalStackName")
.resourceName("resourceName")
.terraformSourceName("terraformSourceName")
.build()))
// the properties below are optional
.appAssessmentSchedule("appAssessmentSchedule")
.description("description")
.resiliencyPolicyArn("resiliencyPolicyArn")
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnApp.Builder
A fluent builder for
CfnApp. |
static interface |
CfnApp.PhysicalResourceIdProperty
Defines a physical resource identifier.
|
static interface |
CfnApp.ResourceMappingProperty
Defines a resource mapping.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnApp(software.constructs.Construct scope,
String id,
CfnAppProps props)
Create a new `AWS::ResilienceHub::App`.
|
protected |
CfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApp(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppAssessmentSchedule()
`AWS::ResilienceHub::App.AppAssessmentSchedule`.
|
String |
getAppTemplateBody()
A string containing a full Resilience Hub app template body.
|
String |
getAttrAppArn()
The Amazon Resource Name (ARN) of the app.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The optional description for an app.
|
String |
getName()
The name for the application.
|
String |
getResiliencyPolicyArn()
The Amazon Resource Name (ARN) of the resiliency policy.
|
Object |
getResourceMappings()
An array of ResourceMapping objects.
|
TagManager |
getTags()
The tags assigned to the resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAppAssessmentSchedule(String value)
`AWS::ResilienceHub::App.AppAssessmentSchedule`.
|
void |
setAppTemplateBody(String value)
A string containing a full Resilience Hub app template body.
|
void |
setDescription(String value)
The optional description for an app.
|
void |
setName(String value)
The name for the application.
|
void |
setResiliencyPolicyArn(String value)
The Amazon Resource Name (ARN) of the resiliency policy.
|
void |
setResourceMappings(IResolvable value)
An array of ResourceMapping objects.
|
void |
setResourceMappings(List<Object> value)
An array of ResourceMapping objects.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnApp(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnApp(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAppProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAppArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.
@Stability(value=Stable) @NotNull public String getAppTemplateBody()
@Stability(value=Stable)
public void setAppTemplateBody(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getResourceMappings()
@Stability(value=Stable)
public void setResourceMappings(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setResourceMappings(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public String getAppAssessmentSchedule()
@Stability(value=Stable)
public void setAppAssessmentSchedule(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getResiliencyPolicyArn()
@Stability(value=Stable)
public void setResiliencyPolicyArn(@Nullable
String value)
Copyright © 2022. All rights reserved.