class CfnAppPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ResilienceHub.Mixins.CfnAppPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsresiliencehub/mixins#CfnAppPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.resiliencehub.mixins.CfnAppPropsMixin |
Python | aws_cdk.mixins_preview.aws_resiliencehub.mixins.CfnAppPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_resiliencehub » mixins » CfnAppPropsMixin |
Implements
IMixin
Extends
Mixin
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).
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehub-app.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as resiliencehub_mixins } from '@aws-cdk/mixins-preview/aws-resiliencehub';
const cfnAppPropsMixin = new resiliencehub_mixins.CfnAppPropsMixin({
appAssessmentSchedule: 'appAssessmentSchedule',
appTemplateBody: 'appTemplateBody',
description: 'description',
eventSubscriptions: [{
eventType: 'eventType',
name: 'name',
snsTopicArn: 'snsTopicArn',
}],
name: 'name',
permissionModel: {
crossAccountRoleArns: ['crossAccountRoleArns'],
invokerRoleName: 'invokerRoleName',
type: 'type',
},
resiliencyPolicyArn: 'resiliencyPolicyArn',
resourceMappings: [{
eksSourceName: 'eksSourceName',
logicalStackName: 'logicalStackName',
mappingType: 'mappingType',
physicalResourceId: {
awsAccountId: 'awsAccountId',
awsRegion: 'awsRegion',
identifier: 'identifier',
type: 'type',
},
resourceName: 'resourceName',
terraformSourceName: 'terraformSourceName',
}],
tags: {
tagsKey: 'tags',
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnAppPropsMixin(props: CfnAppMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.App Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::ResilienceHub::App.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript