java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.resiliencehub.CfnAppPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-14T18:32:18.324Z") @Stability(Stable) public class CfnAppPropsMixin extends Mixin implements software.constructs.IMixin
Creates an AWS Resilience Hub application.

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:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> 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 to AWS::ResilienceHub::App.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnAppPropsMixin

      @Stability(Stable) public CfnAppPropsMixin(@NotNull CfnAppMixinProps props)
      Create a mixin to apply properties to AWS::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.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnAppMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()