Class CfnAppPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
An AWS Resilience Hub application is a collection of AWS resources structured to prevent and recover AWS application disruptions. To describe a AWS Resilience Hub application, you provide an application name, resources from one or more AWS CloudFormation stacks, Resource Groups , Terraform state files, AppRegistry applications, and an appropriate resiliency policy. In addition, you can also add resources that are located on Amazon Elastic Kubernetes Service (Amazon EKS) clusters as optional resources. For more information about the number of resources supported per application, see Service quotas .
After you create an AWS 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.cfnpropertymixins.services.resiliencehub.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnAppPropsMixin cfnAppPropsMixin = CfnAppPropsMixin.Builder.create(CfnAppMixinProps.builder()
.appAssessmentSchedule("appAssessmentSchedule")
.appTemplateBody("appTemplateBody")
.description("description")
.eventSubscriptions(List.of(EventSubscriptionProperty.builder()
.eventType("eventType")
.name("name")
.snsTopicArn("snsTopicArn")
.build()))
.name("name")
.permissionModel(PermissionModelProperty.builder()
.crossAccountRoleArns(List.of("crossAccountRoleArns"))
.invokerRoleName("invokerRoleName")
.type("type")
.build())
.resiliencyPolicyArn("resiliencyPolicyArn")
.resourceMappings(List.of(ResourceMappingProperty.builder()
.eksSourceName("eksSourceName")
.logicalStackName("logicalStackName")
.mappingType("mappingType")
.physicalResourceId(PhysicalResourceIdProperty.builder()
.awsAccountId("awsAccountId")
.awsRegion("awsRegion")
.identifier("identifier")
.type("type")
.build())
.resourceName("resourceName")
.terraformSourceName("terraformSourceName")
.build()))
.tags(Map.of(
"tagsKey", "tags"))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAppPropsMixin.static interfaceIndicates an event you would like to subscribe and get notification for.static interfaceDefines the roles and credentials that AWS Resilience Hub would use while creating the application, importing its resources, and running an assessment.static interfaceDefines a physical resource identifier.static interfaceDefines a resource mapping.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnAppPropsMixin(CfnAppMixinProps props) Create a mixin to apply properties toAWS::ResilienceHub::App.CfnAppPropsMixin(CfnAppMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ResilienceHub::App.protectedCfnAppPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAppPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAppMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAppPropsMixin
protected CfnAppPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAppPropsMixin
protected CfnAppPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAppPropsMixin
@Stability(Stable) public CfnAppPropsMixin(@NotNull CfnAppMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ResilienceHub::App.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAppPropsMixin
Create a mixin to apply properties toAWS::ResilienceHub::App.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-