Skip to content

Commit ca9a579

Browse files
author
awstools
committed
docs(client-resiliencehub): Documentation change for AWS Resilience Hub. Doc-only update to fix Documentation layout
1 parent b9fc7fa commit ca9a579

File tree

4 files changed

+47
-35
lines changed

4 files changed

+47
-35
lines changed

clients/client-resiliencehub/src/Resiliencehub.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ export class Resiliencehub extends ResiliencehubClient {
219219
* resources structured to prevent and recover Amazon Web Services application disruptions. To describe a
220220
* Resilience Hub application, you provide an application name, resources from one or more–up to
221221
* five–CloudFormation stacks, and an appropriate resiliency policy.</p>
222-
*
223222
* <p>After you create a Resilience Hub application, you publish it so that you can run a resiliency
224223
* assessment on it. You can then use recommendations from the assessment to improve resiliency
225224
* by running another assessment, comparing results, and then iterating the process until you

clients/client-resiliencehub/src/commands/CreateAppCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
3232
* resources structured to prevent and recover Amazon Web Services application disruptions. To describe a
3333
* Resilience Hub application, you provide an application name, resources from one or more–up to
3434
* five–CloudFormation stacks, and an appropriate resiliency policy.</p>
35-
*
3635
* <p>After you create a Resilience Hub application, you publish it so that you can run a resiliency
3736
* assessment on it. You can then use recommendations from the assessment to improve resiliency
3837
* by running another assessment, comparing results, and then iterating the process until you

clients/client-resiliencehub/src/models/models_0.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,6 +2971,10 @@ export interface UpdateResiliencyPolicyRequest {
29712971
/**
29722972
* <p>The type of resiliency policy to be created, including the recovery time objective (RTO)
29732973
* and recovery point objective (RPO) in seconds.</p>
2974+
* <note>
2975+
* <p>If you do not want to specify regional targets for a regional policy, you must set the
2976+
* values of <code>rpoInSecs</code> and <code>rtoInSecs</code> to <code>-1</code>.</p>
2977+
* </note>
29742978
*/
29752979
policy?: Record<string, FailurePolicy>;
29762980
}

codegen/sdk-codegen/aws-models/resiliencehub.json

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"smithy": "1.0",
2+
"smithy": "2.0",
33
"shapes": {
44
"com.amazonaws.resiliencehub#AccessDeniedException": {
55
"type": "structure",
@@ -258,6 +258,7 @@
258258
"resiliencyScore": {
259259
"target": "com.amazonaws.resiliencehub#Double",
260260
"traits": {
261+
"smithy.api#default": 0,
261262
"smithy.api#documentation": "<p>The current resiliency score for the application.</p>"
262263
}
263264
},
@@ -480,6 +481,7 @@
480481
"resiliencyScore": {
481482
"target": "com.amazonaws.resiliencehub#Double",
482483
"traits": {
484+
"smithy.api#default": 0,
483485
"smithy.api#documentation": "<p>The current resiliency score for the application.</p>"
484486
}
485487
}
@@ -643,6 +645,7 @@
643645
"resiliencyScore": {
644646
"target": "com.amazonaws.resiliencehub#Double",
645647
"traits": {
648+
"smithy.api#default": 0,
646649
"smithy.api#documentation": "<p>The current resiliency score for the application.</p>"
647650
}
648651
},
@@ -773,25 +776,6 @@
773776
},
774777
"com.amazonaws.resiliencehub#AwsResilienceHub": {
775778
"type": "service",
776-
"traits": {
777-
"aws.api#service": {
778-
"sdkId": "resiliencehub",
779-
"arnNamespace": "resiliencehub",
780-
"cloudFormationName": "Resiliencehub",
781-
"endpointPrefix": "resiliencehub"
782-
},
783-
"aws.auth#sigv4": {
784-
"name": "resiliencehub"
785-
},
786-
"aws.protocols#restJson1": {},
787-
"smithy.api#cors": {
788-
"additionalAllowedHeaders": [
789-
"*,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"
790-
]
791-
},
792-
"smithy.api#documentation": "<p>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. </p>",
793-
"smithy.api#title": "AWS Resilience Hub"
794-
},
795779
"version": "2020-04-30",
796780
"operations": [
797781
{
@@ -911,14 +895,30 @@
911895
{
912896
"target": "com.amazonaws.resiliencehub#UpdateResiliencyPolicy"
913897
}
914-
]
915-
},
916-
"com.amazonaws.resiliencehub#BooleanOptional": {
917-
"type": "boolean",
898+
],
918899
"traits": {
919-
"smithy.api#box": {}
900+
"aws.api#service": {
901+
"sdkId": "resiliencehub",
902+
"arnNamespace": "resiliencehub",
903+
"cloudFormationName": "Resiliencehub",
904+
"endpointPrefix": "resiliencehub"
905+
},
906+
"aws.auth#sigv4": {
907+
"name": "resiliencehub"
908+
},
909+
"aws.protocols#restJson1": {},
910+
"smithy.api#cors": {
911+
"additionalAllowedHeaders": [
912+
"*,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"
913+
]
914+
},
915+
"smithy.api#documentation": "<p>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. </p>",
916+
"smithy.api#title": "AWS Resilience Hub"
920917
}
921918
},
919+
"com.amazonaws.resiliencehub#BooleanOptional": {
920+
"type": "boolean"
921+
},
922922
"com.amazonaws.resiliencehub#ClientToken": {
923923
"type": "string",
924924
"traits": {
@@ -1120,6 +1120,7 @@
11201120
"amount": {
11211121
"target": "com.amazonaws.resiliencehub#Double",
11221122
"traits": {
1123+
"smithy.api#default": 0,
11231124
"smithy.api#documentation": "<p>The cost amount.</p>",
11241125
"smithy.api#required": {}
11251126
}
@@ -1198,7 +1199,7 @@
11981199
}
11991200
],
12001201
"traits": {
1201-
"smithy.api#documentation": "<p>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.</p>\n\n <p>After 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).</p>",
1202+
"smithy.api#documentation": "<p>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.</p>\n <p>After 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).</p>",
12021203
"smithy.api#http": {
12031204
"method": "POST",
12041205
"uri": "/create-app",
@@ -2227,12 +2228,14 @@
22272228
"achievableRtoInSecs": {
22282229
"target": "com.amazonaws.resiliencehub#Seconds",
22292230
"traits": {
2231+
"smithy.api#default": 0,
22302232
"smithy.api#documentation": "<p>The Recovery Time Objective (RTO) that is achievable, in seconds</p>"
22312233
}
22322234
},
22332235
"currentRtoInSecs": {
22342236
"target": "com.amazonaws.resiliencehub#Seconds",
22352237
"traits": {
2238+
"smithy.api#default": 0,
22362239
"smithy.api#documentation": "<p>The current RTO, in seconds.</p>"
22372240
}
22382241
},
@@ -2251,6 +2254,7 @@
22512254
"currentRpoInSecs": {
22522255
"target": "com.amazonaws.resiliencehub#Seconds",
22532256
"traits": {
2257+
"smithy.api#default": 0,
22542258
"smithy.api#documentation": "<p>The current RPO, in seconds.</p>"
22552259
}
22562260
},
@@ -2276,6 +2280,7 @@
22762280
"achievableRpoInSecs": {
22772281
"target": "com.amazonaws.resiliencehub#Seconds",
22782282
"traits": {
2283+
"smithy.api#default": 0,
22792284
"smithy.api#documentation": "<p>The Recovery Point Objective (RPO) that is achievable, in seconds.</p>"
22802285
}
22812286
},
@@ -2341,7 +2346,10 @@
23412346
}
23422347
},
23432348
"com.amazonaws.resiliencehub#Double": {
2344-
"type": "double"
2349+
"type": "double",
2350+
"traits": {
2351+
"smithy.api#default": 0
2352+
}
23452353
},
23462354
"com.amazonaws.resiliencehub#EntityDescription": {
23472355
"type": "string",
@@ -2414,13 +2422,15 @@
24142422
"rtoInSecs": {
24152423
"target": "com.amazonaws.resiliencehub#Seconds",
24162424
"traits": {
2425+
"smithy.api#default": 0,
24172426
"smithy.api#documentation": "<p>The Recovery Time Objective (RTO), in seconds.</p>",
24182427
"smithy.api#required": {}
24192428
}
24202429
},
24212430
"rpoInSecs": {
24222431
"target": "com.amazonaws.resiliencehub#Seconds",
24232432
"traits": {
2433+
"smithy.api#default": 0,
24242434
"smithy.api#documentation": "<p>The Recovery Point Objective (RPO), in seconds.</p>",
24252435
"smithy.api#required": {}
24262436
}
@@ -3926,7 +3936,6 @@
39263936
"com.amazonaws.resiliencehub#MaxResults": {
39273937
"type": "integer",
39283938
"traits": {
3929-
"smithy.api#box": {},
39303939
"smithy.api#range": {
39313940
"min": 1,
39323941
"max": 100
@@ -4216,6 +4225,7 @@
42164225
"expectedRtoInSecs": {
42174226
"target": "com.amazonaws.resiliencehub#Seconds",
42184227
"traits": {
4228+
"smithy.api#default": 0,
42194229
"smithy.api#documentation": "<p>The expected RTO after applying the recommended configuration change.</p>"
42204230
}
42214231
},
@@ -4228,6 +4238,7 @@
42284238
"expectedRpoInSecs": {
42294239
"target": "com.amazonaws.resiliencehub#Seconds",
42304240
"traits": {
4241+
"smithy.api#default": 0,
42314242
"smithy.api#documentation": "<p>The expected RPO after applying the recommended configuration change.</p>"
42324243
}
42334244
},
@@ -4659,6 +4670,7 @@
46594670
"score": {
46604671
"target": "com.amazonaws.resiliencehub#Double",
46614672
"traits": {
4673+
"smithy.api#default": 0,
46624674
"smithy.api#documentation": "<p>The outage score for a valid key.</p>",
46634675
"smithy.api#required": {}
46644676
}
@@ -4985,10 +4997,7 @@
49854997
}
49864998
},
49874999
"com.amazonaws.resiliencehub#RetryAfterSeconds": {
4988-
"type": "integer",
4989-
"traits": {
4990-
"smithy.api#box": {}
4991-
}
5000+
"type": "integer"
49925001
},
49935002
"com.amazonaws.resiliencehub#S3Location": {
49945003
"type": "structure",
@@ -5022,6 +5031,7 @@
50225031
"com.amazonaws.resiliencehub#Seconds": {
50235032
"type": "integer",
50245033
"traits": {
5034+
"smithy.api#default": 0,
50255035
"smithy.api#range": {
50265036
"min": 0
50275037
}
@@ -5787,7 +5797,7 @@
57875797
"policy": {
57885798
"target": "com.amazonaws.resiliencehub#DisruptionPolicy",
57895799
"traits": {
5790-
"smithy.api#documentation": "<p>The type of resiliency policy to be created, including the recovery time objective (RTO)\n and recovery point objective (RPO) in seconds.</p>"
5800+
"smithy.api#documentation": "<p>The type of resiliency policy to be created, including the recovery time objective (RTO)\n and recovery point objective (RPO) in seconds.</p>\n <note>\n <p>If you do not want to specify regional targets for a regional policy, you must set the\n values of <code>rpoInSecs</code> and <code>rtoInSecs</code> to <code>-1</code>.</p>\n </note>"
57915801
}
57925802
}
57935803
}

0 commit comments

Comments
 (0)