From ca9a57975f29c1206fb3566a2ec366545f6e5478 Mon Sep 17 00:00:00 2001
From: awstools
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 diff --git a/clients/client-resiliencehub/src/commands/CreateAppCommand.ts b/clients/client-resiliencehub/src/commands/CreateAppCommand.ts index 6393c0fb4d407..d134388b9698b 100644 --- a/clients/client-resiliencehub/src/commands/CreateAppCommand.ts +++ b/clients/client-resiliencehub/src/commands/CreateAppCommand.ts @@ -32,7 +32,6 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea * resources structured to prevent and recover Amazon Web Services application disruptions. To describe a * Resilience Hub application, you provide an application name, resources from one or more–up to * five–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 diff --git a/clients/client-resiliencehub/src/models/models_0.ts b/clients/client-resiliencehub/src/models/models_0.ts index 6b0402f3a9aee..4e4c018bab16f 100644 --- a/clients/client-resiliencehub/src/models/models_0.ts +++ b/clients/client-resiliencehub/src/models/models_0.ts @@ -2971,6 +2971,10 @@ export interface UpdateResiliencyPolicyRequest { /** *
The type of resiliency policy to be created, including the recovery time objective (RTO) * and recovery point objective (RPO) in seconds.
+ *If you do not want to specify regional targets for a regional policy, you must set the
+ * values of rpoInSecs
and rtoInSecs
to -1
.
The current resiliency score for the application.
" } }, @@ -480,6 +481,7 @@ "resiliencyScore": { "target": "com.amazonaws.resiliencehub#Double", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The current resiliency score for the application.
" } } @@ -643,6 +645,7 @@ "resiliencyScore": { "target": "com.amazonaws.resiliencehub#Double", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The current resiliency score for the application.
" } }, @@ -773,25 +776,6 @@ }, "com.amazonaws.resiliencehub#AwsResilienceHub": { "type": "service", - "traits": { - "aws.api#service": { - "sdkId": "resiliencehub", - "arnNamespace": "resiliencehub", - "cloudFormationName": "Resiliencehub", - "endpointPrefix": "resiliencehub" - }, - "aws.auth#sigv4": { - "name": "resiliencehub" - }, - "aws.protocols#restJson1": {}, - "smithy.api#cors": { - "additionalAllowedHeaders": [ - "*,authorization,date,x-amz-date,x-amz-security-token,x-amz-target,content-type,x-amz-content-sha256,x-amz-user-agent,x-amzn-platform-id,x-amzn-trace-id,amz-sdk-invocation-id,amz-sdk-request" - ] - }, - "smithy.api#documentation": "AWS Resilience Hub helps you proactively prepare and protect your Amazon Web Services applications from\n disruptions. Resilience Hub offers continuous resiliency assessment and validation that integrates\n into your software development lifecycle. This enables you to uncover resiliency weaknesses,\n ensure recovery time objective (RTO) and recovery point objective (RPO) targets for your\n applications are met, and resolve issues before they are released into production.
", - "smithy.api#title": "AWS Resilience Hub" - }, "version": "2020-04-30", "operations": [ { @@ -911,14 +895,30 @@ { "target": "com.amazonaws.resiliencehub#UpdateResiliencyPolicy" } - ] - }, - "com.amazonaws.resiliencehub#BooleanOptional": { - "type": "boolean", + ], "traits": { - "smithy.api#box": {} + "aws.api#service": { + "sdkId": "resiliencehub", + "arnNamespace": "resiliencehub", + "cloudFormationName": "Resiliencehub", + "endpointPrefix": "resiliencehub" + }, + "aws.auth#sigv4": { + "name": "resiliencehub" + }, + "aws.protocols#restJson1": {}, + "smithy.api#cors": { + "additionalAllowedHeaders": [ + "*,authorization,date,x-amz-date,x-amz-security-token,x-amz-target,content-type,x-amz-content-sha256,x-amz-user-agent,x-amzn-platform-id,x-amzn-trace-id,amz-sdk-invocation-id,amz-sdk-request" + ] + }, + "smithy.api#documentation": "AWS Resilience Hub helps you proactively prepare and protect your Amazon Web Services applications from\n disruptions. Resilience Hub offers continuous resiliency assessment and validation that integrates\n into your software development lifecycle. This enables you to uncover resiliency weaknesses,\n ensure recovery time objective (RTO) and recovery point objective (RPO) targets for your\n applications are met, and resolve issues before they are released into production.
", + "smithy.api#title": "AWS Resilience Hub" } }, + "com.amazonaws.resiliencehub#BooleanOptional": { + "type": "boolean" + }, "com.amazonaws.resiliencehub#ClientToken": { "type": "string", "traits": { @@ -1120,6 +1120,7 @@ "amount": { "target": "com.amazonaws.resiliencehub#Double", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The cost amount.
", "smithy.api#required": {} } @@ -1198,7 +1199,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a Resilience Hub application. A Resilience Hub application is a collection of Amazon Web Services\n resources structured to prevent and recover Amazon Web Services application disruptions. To describe a\n Resilience Hub application, you provide an application name, resources from one or more–up to\n five–CloudFormation stacks, and an appropriate resiliency policy.
\n\nAfter you create a Resilience Hub application, you publish it so that you can run a resiliency\n assessment on it. You can then use recommendations from the assessment to improve resiliency\n by running another assessment, comparing results, and then iterating the process until you\n achieve your goals for recovery time objective (RTO) and recovery point objective\n (RPO).
", + "smithy.api#documentation": "Creates a Resilience Hub application. A Resilience Hub application is a collection of Amazon Web Services\n resources structured to prevent and recover Amazon Web Services application disruptions. To describe a\n Resilience Hub application, you provide an application name, resources from one or more–up to\n five–CloudFormation stacks, and an appropriate resiliency policy.
\nAfter you create a Resilience Hub application, you publish it so that you can run a resiliency\n assessment on it. You can then use recommendations from the assessment to improve resiliency\n by running another assessment, comparing results, and then iterating the process until you\n achieve your goals for recovery time objective (RTO) and recovery point objective\n (RPO).
", "smithy.api#http": { "method": "POST", "uri": "/create-app", @@ -2227,12 +2228,14 @@ "achievableRtoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The Recovery Time Objective (RTO) that is achievable, in seconds
" } }, "currentRtoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The current RTO, in seconds.
" } }, @@ -2251,6 +2254,7 @@ "currentRpoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The current RPO, in seconds.
" } }, @@ -2276,6 +2280,7 @@ "achievableRpoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The Recovery Point Objective (RPO) that is achievable, in seconds.
" } }, @@ -2341,7 +2346,10 @@ } }, "com.amazonaws.resiliencehub#Double": { - "type": "double" + "type": "double", + "traits": { + "smithy.api#default": 0 + } }, "com.amazonaws.resiliencehub#EntityDescription": { "type": "string", @@ -2414,6 +2422,7 @@ "rtoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The Recovery Time Objective (RTO), in seconds.
", "smithy.api#required": {} } @@ -2421,6 +2430,7 @@ "rpoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The Recovery Point Objective (RPO), in seconds.
", "smithy.api#required": {} } @@ -3926,7 +3936,6 @@ "com.amazonaws.resiliencehub#MaxResults": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 100 @@ -4216,6 +4225,7 @@ "expectedRtoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The expected RTO after applying the recommended configuration change.
" } }, @@ -4228,6 +4238,7 @@ "expectedRpoInSecs": { "target": "com.amazonaws.resiliencehub#Seconds", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The expected RPO after applying the recommended configuration change.
" } }, @@ -4659,6 +4670,7 @@ "score": { "target": "com.amazonaws.resiliencehub#Double", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The outage score for a valid key.
", "smithy.api#required": {} } @@ -4985,10 +4997,7 @@ } }, "com.amazonaws.resiliencehub#RetryAfterSeconds": { - "type": "integer", - "traits": { - "smithy.api#box": {} - } + "type": "integer" }, "com.amazonaws.resiliencehub#S3Location": { "type": "structure", @@ -5022,6 +5031,7 @@ "com.amazonaws.resiliencehub#Seconds": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 0 } @@ -5787,7 +5797,7 @@ "policy": { "target": "com.amazonaws.resiliencehub#DisruptionPolicy", "traits": { - "smithy.api#documentation": "The type of resiliency policy to be created, including the recovery time objective (RTO)\n and recovery point objective (RPO) in seconds.
" + "smithy.api#documentation": "The type of resiliency policy to be created, including the recovery time objective (RTO)\n and recovery point objective (RPO) in seconds.
\nIf you do not want to specify regional targets for a regional policy, you must set the\n values of rpoInSecs
and rtoInSecs
to -1
.