/
resiliencehub.jl
2610 lines (2406 loc) · 95.9 KB
/
resiliencehub.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file is auto-generated by AWSMetadata.jl
using AWS
using AWS.AWSServices: resiliencehub
using AWS.Compat
using AWS.UUIDs
"""
add_draft_app_version_resource_mappings(app_arn, resource_mappings)
add_draft_app_version_resource_mappings(app_arn, resource_mappings, params::Dict{String,<:Any})
Adds the resource mapping for the draft application version. You can also update an
existing resource mapping to a new physical resource.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `resource_mappings`: Mappings used to map logical resources from the template to physical
resources. You can use the mapping type CFN_STACK if the application template uses a
logical stack name. Or you can map individual resources by using the mapping type RESOURCE.
We recommend using the mapping type CFN_STACK if the application is backed by a
CloudFormation stack.
"""
function add_draft_app_version_resource_mappings(
appArn, resourceMappings; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/add-draft-app-version-resource-mappings",
Dict{String,Any}("appArn" => appArn, "resourceMappings" => resourceMappings);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function add_draft_app_version_resource_mappings(
appArn,
resourceMappings,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/add-draft-app-version-resource-mappings",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"appArn" => appArn, "resourceMappings" => resourceMappings
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_app(name)
create_app(name, params::Dict{String,<:Any})
Creates an Resilience Hub application. An Resilience Hub application is a collection of
Amazon Web Services resources structured to prevent and recover Amazon Web Services
application disruptions. To describe an Resilience Hub application, you provide an
application name, resources from one or more CloudFormation stacks, Resource Groups,
Terraform state files, AppRegistry applications, and an appropriate resiliency policy. For
more information about the number of resources supported per application, see Service
Quotas. After you create an 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).
# Arguments
- `name`: The name for the application.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"assessmentSchedule"`: Assessment execution schedule with 'Daily' or 'Disabled' values.
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"description"`: The optional description for an app.
- `"policyArn"`: The Amazon Resource Name (ARN) of the resiliency policy. The format for
this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For
more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `"tags"`: The tags assigned to the resource. A tag is a label that you assign to an
Amazon Web Services resource. Each tag consists of a key/value pair.
"""
function create_app(name; aws_config::AbstractAWSConfig=global_aws_config())
return resiliencehub(
"POST",
"/create-app",
Dict{String,Any}("name" => name, "clientToken" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_app(
name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/create-app",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("name" => name, "clientToken" => string(uuid4())),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_app_version_app_component(app_arn, name, type)
create_app_version_app_component(app_arn, name, type, params::Dict{String,<:Any})
Creates a new Application Component in the Resilience Hub application. This API updates
the Resilience Hub application draft version. To use this Application Component for running
assessments, you must publish the Resilience Hub application using the PublishAppVersion
API.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `name`: The name of the Application Component.
- `type`: The type of Application Component. For more information about the types of
Application Component, see Grouping resources in an AppComponent.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"additionalInfo"`: Currently, there is no supported additional information for
Application Components.
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"id"`: The identifier of the Application Component.
"""
function create_app_version_app_component(
appArn, name, type; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/create-app-version-app-component",
Dict{String,Any}(
"appArn" => appArn,
"name" => name,
"type" => type,
"clientToken" => string(uuid4()),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_app_version_app_component(
appArn,
name,
type,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/create-app-version-app-component",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"appArn" => appArn,
"name" => name,
"type" => type,
"clientToken" => string(uuid4()),
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_app_version_resource(app_arn, app_components, logical_resource_id, physical_resource_id, resource_type)
create_app_version_resource(app_arn, app_components, logical_resource_id, physical_resource_id, resource_type, params::Dict{String,<:Any})
Adds a resource to the Resilience Hub application and assigns it to the specified
Application Components. If you specify a new Application Component, Resilience Hub will
automatically create the Application Component. This action has no effect outside
Resilience Hub. This API updates the Resilience Hub application draft version. To use
this resource for running resiliency assessments, you must publish the Resilience Hub
application using the PublishAppVersion API. To update application version with new
physicalResourceID, you must call ResolveAppVersionResources API.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `app_components`: The list of Application Components that this resource belongs to. If an
Application Component is not part of the Resilience Hub application, it will be added.
- `logical_resource_id`: The logical identifier of the resource.
- `physical_resource_id`: The physical identifier of the resource.
- `resource_type`: The type of resource.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"additionalInfo"`: Currently, there is no supported additional information for resources.
- `"awsAccountId"`: The Amazon Web Services account that owns the physical resource.
- `"awsRegion"`: The Amazon Web Services region that owns the physical resource.
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"resourceName"`: The name of the resource.
"""
function create_app_version_resource(
appArn,
appComponents,
logicalResourceId,
physicalResourceId,
resourceType;
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/create-app-version-resource",
Dict{String,Any}(
"appArn" => appArn,
"appComponents" => appComponents,
"logicalResourceId" => logicalResourceId,
"physicalResourceId" => physicalResourceId,
"resourceType" => resourceType,
"clientToken" => string(uuid4()),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_app_version_resource(
appArn,
appComponents,
logicalResourceId,
physicalResourceId,
resourceType,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/create-app-version-resource",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"appArn" => appArn,
"appComponents" => appComponents,
"logicalResourceId" => logicalResourceId,
"physicalResourceId" => physicalResourceId,
"resourceType" => resourceType,
"clientToken" => string(uuid4()),
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_recommendation_template(assessment_arn, name)
create_recommendation_template(assessment_arn, name, params::Dict{String,<:Any})
Creates a new recommendation template for the Resilience Hub application.
# Arguments
- `assessment_arn`: The Amazon Resource Name (ARN) of the assessment. The format for this
ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `name`: The name for the recommendation template.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"bucketName"`: The name of the Amazon S3 bucket that will contain the recommendation
template.
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"format"`: The format for the recommendation template. CfnJson The template is
CloudFormation JSON. CfnYaml The template is CloudFormation YAML.
- `"recommendationIds"`: Identifiers for the recommendations used to create a
recommendation template.
- `"recommendationTypes"`: An array of strings that specify the recommendation template
type or types. Alarm The template is an AlarmRecommendation template. Sop The template
is a SopRecommendation template. Test The template is a TestRecommendation template.
- `"tags"`: The tags assigned to the resource. A tag is a label that you assign to an
Amazon Web Services resource. Each tag consists of a key/value pair.
"""
function create_recommendation_template(
assessmentArn, name; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/create-recommendation-template",
Dict{String,Any}(
"assessmentArn" => assessmentArn,
"name" => name,
"clientToken" => string(uuid4()),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_recommendation_template(
assessmentArn,
name,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/create-recommendation-template",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"assessmentArn" => assessmentArn,
"name" => name,
"clientToken" => string(uuid4()),
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_resiliency_policy(policy, policy_name, tier)
create_resiliency_policy(policy, policy_name, tier, params::Dict{String,<:Any})
Creates a resiliency policy for an application.
# Arguments
- `policy`: The type of resiliency policy to be created, including the recovery time
objective (RTO) and recovery point objective (RPO) in seconds.
- `policy_name`: The name of the policy
- `tier`: The tier for this resiliency policy, ranging from the highest severity
(MissionCritical) to lowest (NonCritical).
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"dataLocationConstraint"`: Specifies a high-level geographical location constraint for
where your resilience policy data can be stored.
- `"policyDescription"`: The description for the policy.
- `"tags"`: The tags assigned to the resource. A tag is a label that you assign to an
Amazon Web Services resource. Each tag consists of a key/value pair.
"""
function create_resiliency_policy(
policy, policyName, tier; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/create-resiliency-policy",
Dict{String,Any}(
"policy" => policy,
"policyName" => policyName,
"tier" => tier,
"clientToken" => string(uuid4()),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_resiliency_policy(
policy,
policyName,
tier,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/create-resiliency-policy",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"policy" => policy,
"policyName" => policyName,
"tier" => tier,
"clientToken" => string(uuid4()),
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_app(app_arn)
delete_app(app_arn, params::Dict{String,<:Any})
Deletes an Resilience Hub application. This is a destructive action that can't be undone.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"forceDelete"`: A boolean option to force the deletion of an Resilience Hub application.
"""
function delete_app(appArn; aws_config::AbstractAWSConfig=global_aws_config())
return resiliencehub(
"POST",
"/delete-app",
Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_app(
appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-app",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_app_assessment(assessment_arn)
delete_app_assessment(assessment_arn, params::Dict{String,<:Any})
Deletes an Resilience Hub application assessment. This is a destructive action that can't
be undone.
# Arguments
- `assessment_arn`: The Amazon Resource Name (ARN) of the assessment. The format for this
ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
"""
function delete_app_assessment(
assessmentArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-app-assessment",
Dict{String,Any}(
"assessmentArn" => assessmentArn, "clientToken" => string(uuid4())
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_app_assessment(
assessmentArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/delete-app-assessment",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"assessmentArn" => assessmentArn, "clientToken" => string(uuid4())
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_app_input_source(app_arn)
delete_app_input_source(app_arn, params::Dict{String,<:Any})
Deletes the input source and all of its imported resources from the Resilience Hub
application.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"eksSourceClusterNamespace"`: The namespace on your Amazon Elastic Kubernetes Service
cluster that you want to delete from the Resilience Hub application.
- `"sourceArn"`: The Amazon Resource Name (ARN) of the imported resource you want to remove
from the Resilience Hub application. For more information about ARNs, see Amazon Resource
Names (ARNs) in the AWS General Reference guide.
- `"terraformSource"`: The imported Terraform s3 state file you want to remove from the
Resilience Hub application.
"""
function delete_app_input_source(appArn; aws_config::AbstractAWSConfig=global_aws_config())
return resiliencehub(
"POST",
"/delete-app-input-source",
Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_app_input_source(
appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-app-input-source",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_app_version_app_component(app_arn, id)
delete_app_version_app_component(app_arn, id, params::Dict{String,<:Any})
Deletes an Application Component from the Resilience Hub application. This API updates
the Resilience Hub application draft version. To use this Application Component for running
assessments, you must publish the Resilience Hub application using the PublishAppVersion
API. You will not be able to delete an Application Component if it has resources
associated with it.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `id`: The identifier of the Application Component.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
"""
function delete_app_version_app_component(
appArn, id; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-app-version-app-component",
Dict{String,Any}("appArn" => appArn, "id" => id, "clientToken" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_app_version_app_component(
appArn,
id,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/delete-app-version-app-component",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"appArn" => appArn, "id" => id, "clientToken" => string(uuid4())
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_app_version_resource(app_arn)
delete_app_version_resource(app_arn, params::Dict{String,<:Any})
Deletes a resource from the Resilience Hub application. You can only delete a manually
added resource. To exclude non-manually added resources, use the UpdateAppVersionResource
API. This action has no effect outside Resilience Hub. This API updates the Resilience
Hub application draft version. To use this resource for running resiliency assessments, you
must publish the Resilience Hub application using the PublishAppVersion API.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"awsAccountId"`: The Amazon Web Services account that owns the physical resource.
- `"awsRegion"`: The Amazon Web Services region that owns the physical resource.
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
- `"logicalResourceId"`: The logical identifier of the resource.
- `"physicalResourceId"`: The physical identifier of the resource.
- `"resourceName"`: The name of the resource.
"""
function delete_app_version_resource(
appArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-app-version-resource",
Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_app_version_resource(
appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-app-version-resource",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_recommendation_template(recommendation_template_arn)
delete_recommendation_template(recommendation_template_arn, params::Dict{String,<:Any})
Deletes a recommendation template. This is a destructive action that can't be undone.
# Arguments
- `recommendation_template_arn`: The Amazon Resource Name (ARN) for a recommendation
template.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
"""
function delete_recommendation_template(
recommendationTemplateArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-recommendation-template",
Dict{String,Any}(
"recommendationTemplateArn" => recommendationTemplateArn,
"clientToken" => string(uuid4()),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_recommendation_template(
recommendationTemplateArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/delete-recommendation-template",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"recommendationTemplateArn" => recommendationTemplateArn,
"clientToken" => string(uuid4()),
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_resiliency_policy(policy_arn)
delete_resiliency_policy(policy_arn, params::Dict{String,<:Any})
Deletes a resiliency policy. This is a destructive action that can't be undone.
# Arguments
- `policy_arn`: The Amazon Resource Name (ARN) of the resiliency policy. The format for
this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For
more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientToken"`: Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
"""
function delete_resiliency_policy(
policyArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/delete-resiliency-policy",
Dict{String,Any}("policyArn" => policyArn, "clientToken" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_resiliency_policy(
policyArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/delete-resiliency-policy",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"policyArn" => policyArn, "clientToken" => string(uuid4())
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_app(app_arn)
describe_app(app_arn, params::Dict{String,<:Any})
Describes an Resilience Hub application.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
"""
function describe_app(appArn; aws_config::AbstractAWSConfig=global_aws_config())
return resiliencehub(
"POST",
"/describe-app",
Dict{String,Any}("appArn" => appArn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_app(
appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/describe-app",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("appArn" => appArn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_app_assessment(assessment_arn)
describe_app_assessment(assessment_arn, params::Dict{String,<:Any})
Describes an assessment for an Resilience Hub application.
# Arguments
- `assessment_arn`: The Amazon Resource Name (ARN) of the assessment. The format for this
ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
"""
function describe_app_assessment(
assessmentArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/describe-app-assessment",
Dict{String,Any}("assessmentArn" => assessmentArn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_app_assessment(
assessmentArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/describe-app-assessment",
Dict{String,Any}(
mergewith(_merge, Dict{String,Any}("assessmentArn" => assessmentArn), params)
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_app_version(app_arn, app_version)
describe_app_version(app_arn, app_version, params::Dict{String,<:Any})
Describes the Resilience Hub application version.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `app_version`: The Resilience Hub application version.
"""
function describe_app_version(
appArn, appVersion; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/describe-app-version",
Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_app_version(
appArn,
appVersion,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/describe-app-version",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_app_version_app_component(app_arn, app_version, id)
describe_app_version_app_component(app_arn, app_version, id, params::Dict{String,<:Any})
Describes an Application Component in the Resilience Hub application.
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `app_version`: The Resilience Hub application version.
- `id`: The identifier of the Application Component.
"""
function describe_app_version_app_component(
appArn, appVersion, id; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/describe-app-version-app-component",
Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion, "id" => id);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_app_version_app_component(
appArn,
appVersion,
id,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/describe-app-version-app-component",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"appArn" => appArn, "appVersion" => appVersion, "id" => id
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_app_version_resource(app_arn, app_version)
describe_app_version_resource(app_arn, app_version, params::Dict{String,<:Any})
Describes a resource of the Resilience Hub application. This API accepts only one of the
following parameters to descibe the resource: resourceName logicalResourceId
physicalResourceId (Along with physicalResourceId, you can also provide awsAccountId, and
awsRegion)
# Arguments
- `app_arn`: The Amazon Resource Name (ARN) of the Resilience Hub application. The format
for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more
information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference
guide.
- `app_version`: The Resilience Hub application version.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"awsAccountId"`: The Amazon Web Services account that owns the physical resource.
- `"awsRegion"`: The Amazon Web Services region that owns the physical resource.
- `"logicalResourceId"`: The logical identifier of the resource.
- `"physicalResourceId"`: The physical identifier of the resource.
- `"resourceName"`: The name of the resource.
"""
function describe_app_version_resource(
appArn, appVersion; aws_config::AbstractAWSConfig=global_aws_config()
)
return resiliencehub(
"POST",
"/describe-app-version-resource",
Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_app_version_resource(
appArn,
appVersion,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return resiliencehub(
"POST",
"/describe-app-version-resource",
Dict{String,Any}(
mergewith(
_merge,