Class CfnAppMixinProps
Properties for CfnAppPropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ResilienceHub.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnAppMixinProps : ICfnAppMixinProps
Syntax (vb)
Public Class CfnAppMixinProps Implements ICfnAppMixinProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehub-app.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ResilienceHub.Mixins;
var cfnAppMixinProps = new CfnAppMixinProps {
AppAssessmentSchedule = "appAssessmentSchedule",
AppTemplateBody = "appTemplateBody",
Description = "description",
EventSubscriptions = new [] { new EventSubscriptionProperty {
EventType = "eventType",
Name = "name",
SnsTopicArn = "snsTopicArn"
} },
Name = "name",
PermissionModel = new PermissionModelProperty {
CrossAccountRoleArns = new [] { "crossAccountRoleArns" },
InvokerRoleName = "invokerRoleName",
Type = "type"
},
ResiliencyPolicyArn = "resiliencyPolicyArn",
ResourceMappings = new [] { new ResourceMappingProperty {
EksSourceName = "eksSourceName",
LogicalStackName = "logicalStackName",
MappingType = "mappingType",
PhysicalResourceId = new PhysicalResourceIdProperty {
AwsAccountId = "awsAccountId",
AwsRegion = "awsRegion",
Identifier = "identifier",
Type = "type"
},
ResourceName = "resourceName",
TerraformSourceName = "terraformSourceName"
} },
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Synopsis
Constructors
| CfnAppMixinProps() | Properties for CfnAppPropsMixin. |
Properties
| AppAssessmentSchedule | Assessment execution schedule with 'Daily' or 'Disabled' values. |
| AppTemplateBody | A JSON string that provides information about your application structure. |
| Description | Optional description for an application. |
| EventSubscriptions | The list of events you would like to subscribe and get notification for. |
| Name | Name for the application. |
| PermissionModel | Defines the roles and credentials that AWS Resilience Hub would use while creating the application, importing its resources, and running an assessment. |
| ResiliencyPolicyArn | The Amazon Resource Name (ARN) of the resiliency policy. |
| ResourceMappings | An array of |
| Tags | Tags assigned to the resource. |
Constructors
CfnAppMixinProps()
Properties for CfnAppPropsMixin.
public CfnAppMixinProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehub-app.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ResilienceHub.Mixins;
var cfnAppMixinProps = new CfnAppMixinProps {
AppAssessmentSchedule = "appAssessmentSchedule",
AppTemplateBody = "appTemplateBody",
Description = "description",
EventSubscriptions = new [] { new EventSubscriptionProperty {
EventType = "eventType",
Name = "name",
SnsTopicArn = "snsTopicArn"
} },
Name = "name",
PermissionModel = new PermissionModelProperty {
CrossAccountRoleArns = new [] { "crossAccountRoleArns" },
InvokerRoleName = "invokerRoleName",
Type = "type"
},
ResiliencyPolicyArn = "resiliencyPolicyArn",
ResourceMappings = new [] { new ResourceMappingProperty {
EksSourceName = "eksSourceName",
LogicalStackName = "logicalStackName",
MappingType = "mappingType",
PhysicalResourceId = new PhysicalResourceIdProperty {
AwsAccountId = "awsAccountId",
AwsRegion = "awsRegion",
Identifier = "identifier",
Type = "type"
},
ResourceName = "resourceName",
TerraformSourceName = "terraformSourceName"
} },
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Properties
AppAssessmentSchedule
Assessment execution schedule with 'Daily' or 'Disabled' values.
public string? AppAssessmentSchedule { get; set; }
Property Value
Remarks
AppTemplateBody
A JSON string that provides information about your application structure.
public string? AppTemplateBody { get; set; }
Property Value
Remarks
To learn more about the appTemplateBody template, see the sample template in Sample appTemplateBody template .
The appTemplateBody JSON string has the following structure:
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:
The logical identifier of the resource.
Type: Object
Each logicalResourceId object includes the following fields:
Identifier of the resource.
Type: String
Name of the AWS CloudFormation stack this resource belongs to.
Type: String
Name of the resource group this resource belongs to.
Type: String
Name of the Terraform S3 state file this resource belongs to.
Type: String
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
The type of resource.
Type: string
Name of the resource.
Type: String
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>"}]}]"
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 of the AppComponent.
Type: String
The type of AppComponent. For more information about the types of AppComponent, see Grouping resources in an AppComponent .
Type: String
The list of included resources that are assigned to the AppComponent.
Type: Array of strings
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>"}]}]"
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:
The logical identifier of the resource.
Type: Object
You can configure only one of the following fields:
Each logicalResourceIds object includes the following fields:
The identifier of the resource.
Type: String
Name of the AWS CloudFormation stack this resource belongs to.
Type: String
Name of the resource group this resource belongs to.
Type: String
Name of the Terraform S3 state file this resource belongs to.
Type: String
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
The AWS Resilience Hub application version.
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>"}]}]"
Description
Optional description for an application.
public string? Description { get; set; }
Property Value
Remarks
EventSubscriptions
The list of events you would like to subscribe and get notification for.
public object? EventSubscriptions { get; set; }
Property Value
Remarks
Currently, AWS Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
Type union: either IResolvable or (either IResolvable or CfnAppPropsMixin.IEventSubscriptionProperty)[]
Name
Name for the application.
public string? Name { get; set; }
Property Value
Remarks
PermissionModel
Defines the roles and credentials that AWS Resilience Hub would use while creating the application, importing its resources, and running an assessment.
public object? PermissionModel { get; set; }
Property Value
Remarks
ResiliencyPolicyArn
The Amazon Resource Name (ARN) of the resiliency policy.
public string? ResiliencyPolicyArn { get; set; }
Property Value
Remarks
ResourceMappings
An array of ResourceMapping objects.
public object? ResourceMappings { get; set; }
Property Value
Remarks
Tags
Tags assigned to the resource.
public IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.