aws-sdk-wellarchitected 1.20.0 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wellarchitected/client.rb +222 -85
- data/lib/aws-sdk-wellarchitected/client_api.rb +87 -0
- data/lib/aws-sdk-wellarchitected/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-wellarchitected/endpoints.rb +14 -0
- data/lib/aws-sdk-wellarchitected/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-wellarchitected/types.rb +398 -99
- data/lib/aws-sdk-wellarchitected.rb +1 -1
- metadata +2 -2
@@ -27,6 +27,8 @@ module Aws::WellArchitected
|
|
27
27
|
AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
|
28
28
|
AwsRegion = Shapes::StringShape.new(name: 'AwsRegion')
|
29
29
|
Base64String = Shapes::StringShape.new(name: 'Base64String')
|
30
|
+
BestPractice = Shapes::StructureShape.new(name: 'BestPractice')
|
31
|
+
BestPractices = Shapes::ListShape.new(name: 'BestPractices')
|
30
32
|
CheckDescription = Shapes::StringShape.new(name: 'CheckDescription')
|
31
33
|
CheckDetail = Shapes::StructureShape.new(name: 'CheckDetail')
|
32
34
|
CheckDetails = Shapes::ListShape.new(name: 'CheckDetails')
|
@@ -59,6 +61,8 @@ module Aws::WellArchitected
|
|
59
61
|
Choices = Shapes::ListShape.new(name: 'Choices')
|
60
62
|
ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
|
61
63
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
64
|
+
ConsolidatedReportMetric = Shapes::StructureShape.new(name: 'ConsolidatedReportMetric')
|
65
|
+
ConsolidatedReportMetrics = Shapes::ListShape.new(name: 'ConsolidatedReportMetrics')
|
62
66
|
Count = Shapes::IntegerShape.new(name: 'Count')
|
63
67
|
CreateLensShareInput = Shapes::StructureShape.new(name: 'CreateLensShareInput')
|
64
68
|
CreateLensShareOutput = Shapes::StructureShape.new(name: 'CreateLensShareOutput')
|
@@ -85,6 +89,9 @@ module Aws::WellArchitected
|
|
85
89
|
FlaggedResources = Shapes::IntegerShape.new(name: 'FlaggedResources')
|
86
90
|
GetAnswerInput = Shapes::StructureShape.new(name: 'GetAnswerInput')
|
87
91
|
GetAnswerOutput = Shapes::StructureShape.new(name: 'GetAnswerOutput')
|
92
|
+
GetConsolidatedReportInput = Shapes::StructureShape.new(name: 'GetConsolidatedReportInput')
|
93
|
+
GetConsolidatedReportMaxResults = Shapes::IntegerShape.new(name: 'GetConsolidatedReportMaxResults')
|
94
|
+
GetConsolidatedReportOutput = Shapes::StructureShape.new(name: 'GetConsolidatedReportOutput')
|
88
95
|
GetLensInput = Shapes::StructureShape.new(name: 'GetLensInput')
|
89
96
|
GetLensOutput = Shapes::StructureShape.new(name: 'GetLensOutput')
|
90
97
|
GetLensReviewInput = Shapes::StructureShape.new(name: 'GetLensReviewInput')
|
@@ -104,6 +111,7 @@ module Aws::WellArchitected
|
|
104
111
|
ImprovementPlanUrl = Shapes::StringShape.new(name: 'ImprovementPlanUrl')
|
105
112
|
ImprovementSummaries = Shapes::ListShape.new(name: 'ImprovementSummaries')
|
106
113
|
ImprovementSummary = Shapes::StructureShape.new(name: 'ImprovementSummary')
|
114
|
+
IncludeSharedResources = Shapes::BooleanShape.new(name: 'IncludeSharedResources')
|
107
115
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
108
116
|
IsApplicable = Shapes::BooleanShape.new(name: 'IsApplicable')
|
109
117
|
IsMajorVersion = Shapes::BooleanShape.new(name: 'IsMajorVersion')
|
@@ -114,6 +122,8 @@ module Aws::WellArchitected
|
|
114
122
|
LensArn = Shapes::StringShape.new(name: 'LensArn')
|
115
123
|
LensDescription = Shapes::StringShape.new(name: 'LensDescription')
|
116
124
|
LensJSON = Shapes::StringShape.new(name: 'LensJSON')
|
125
|
+
LensMetric = Shapes::StructureShape.new(name: 'LensMetric')
|
126
|
+
LensMetrics = Shapes::ListShape.new(name: 'LensMetrics')
|
117
127
|
LensName = Shapes::StringShape.new(name: 'LensName')
|
118
128
|
LensNamePrefix = Shapes::StringShape.new(name: 'LensNamePrefix')
|
119
129
|
LensOwner = Shapes::StringShape.new(name: 'LensOwner')
|
@@ -130,6 +140,7 @@ module Aws::WellArchitected
|
|
130
140
|
LensType = Shapes::StringShape.new(name: 'LensType')
|
131
141
|
LensUpgradeSummary = Shapes::StructureShape.new(name: 'LensUpgradeSummary')
|
132
142
|
LensVersion = Shapes::StringShape.new(name: 'LensVersion')
|
143
|
+
LensesAppliedCount = Shapes::IntegerShape.new(name: 'LensesAppliedCount')
|
133
144
|
ListAnswersInput = Shapes::StructureShape.new(name: 'ListAnswersInput')
|
134
145
|
ListAnswersMaxResults = Shapes::IntegerShape.new(name: 'ListAnswersMaxResults')
|
135
146
|
ListAnswersOutput = Shapes::StructureShape.new(name: 'ListAnswersOutput')
|
@@ -163,6 +174,7 @@ module Aws::WellArchitected
|
|
163
174
|
ListWorkloadsMaxResults = Shapes::IntegerShape.new(name: 'ListWorkloadsMaxResults')
|
164
175
|
ListWorkloadsOutput = Shapes::StructureShape.new(name: 'ListWorkloadsOutput')
|
165
176
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
177
|
+
MetricType = Shapes::StringShape.new(name: 'MetricType')
|
166
178
|
Milestone = Shapes::StructureShape.new(name: 'Milestone')
|
167
179
|
MilestoneName = Shapes::StringShape.new(name: 'MilestoneName')
|
168
180
|
MilestoneNumber = Shapes::IntegerShape.new(name: 'MilestoneNumber')
|
@@ -178,6 +190,8 @@ module Aws::WellArchitected
|
|
178
190
|
PillarDifference = Shapes::StructureShape.new(name: 'PillarDifference')
|
179
191
|
PillarDifferences = Shapes::ListShape.new(name: 'PillarDifferences')
|
180
192
|
PillarId = Shapes::StringShape.new(name: 'PillarId')
|
193
|
+
PillarMetric = Shapes::StructureShape.new(name: 'PillarMetric')
|
194
|
+
PillarMetrics = Shapes::ListShape.new(name: 'PillarMetrics')
|
181
195
|
PillarName = Shapes::StringShape.new(name: 'PillarName')
|
182
196
|
PillarNotes = Shapes::MapShape.new(name: 'PillarNotes')
|
183
197
|
PillarReviewSummaries = Shapes::ListShape.new(name: 'PillarReviewSummaries')
|
@@ -186,8 +200,11 @@ module Aws::WellArchitected
|
|
186
200
|
QuestionDifference = Shapes::StructureShape.new(name: 'QuestionDifference')
|
187
201
|
QuestionDifferences = Shapes::ListShape.new(name: 'QuestionDifferences')
|
188
202
|
QuestionId = Shapes::StringShape.new(name: 'QuestionId')
|
203
|
+
QuestionMetric = Shapes::StructureShape.new(name: 'QuestionMetric')
|
204
|
+
QuestionMetrics = Shapes::ListShape.new(name: 'QuestionMetrics')
|
189
205
|
QuestionTitle = Shapes::StringShape.new(name: 'QuestionTitle')
|
190
206
|
QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
|
207
|
+
ReportFormat = Shapes::StringShape.new(name: 'ReportFormat')
|
191
208
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
192
209
|
Risk = Shapes::StringShape.new(name: 'Risk')
|
193
210
|
RiskCounts = Shapes::MapShape.new(name: 'RiskCounts')
|
@@ -306,6 +323,12 @@ module Aws::WellArchitected
|
|
306
323
|
AssociateLensesInput.add_member(:lens_aliases, Shapes::ShapeRef.new(shape: LensAliases, required: true, location_name: "LensAliases"))
|
307
324
|
AssociateLensesInput.struct_class = Types::AssociateLensesInput
|
308
325
|
|
326
|
+
BestPractice.add_member(:choice_id, Shapes::ShapeRef.new(shape: ChoiceId, location_name: "ChoiceId"))
|
327
|
+
BestPractice.add_member(:choice_title, Shapes::ShapeRef.new(shape: ChoiceTitle, location_name: "ChoiceTitle"))
|
328
|
+
BestPractice.struct_class = Types::BestPractice
|
329
|
+
|
330
|
+
BestPractices.member = Shapes::ShapeRef.new(shape: BestPractice)
|
331
|
+
|
309
332
|
CheckDetail.add_member(:id, Shapes::ShapeRef.new(shape: CheckId, location_name: "Id"))
|
310
333
|
CheckDetail.add_member(:name, Shapes::ShapeRef.new(shape: CheckName, location_name: "Name"))
|
311
334
|
CheckDetail.add_member(:description, Shapes::ShapeRef.new(shape: CheckDescription, location_name: "Description"))
|
@@ -387,6 +410,18 @@ module Aws::WellArchitected
|
|
387
410
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ExceptionResourceType, required: true, location_name: "ResourceType"))
|
388
411
|
ConflictException.struct_class = Types::ConflictException
|
389
412
|
|
413
|
+
ConsolidatedReportMetric.add_member(:metric_type, Shapes::ShapeRef.new(shape: MetricType, location_name: "MetricType"))
|
414
|
+
ConsolidatedReportMetric.add_member(:risk_counts, Shapes::ShapeRef.new(shape: RiskCounts, location_name: "RiskCounts"))
|
415
|
+
ConsolidatedReportMetric.add_member(:workload_id, Shapes::ShapeRef.new(shape: WorkloadId, location_name: "WorkloadId"))
|
416
|
+
ConsolidatedReportMetric.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "WorkloadName"))
|
417
|
+
ConsolidatedReportMetric.add_member(:workload_arn, Shapes::ShapeRef.new(shape: WorkloadArn, location_name: "WorkloadArn"))
|
418
|
+
ConsolidatedReportMetric.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
419
|
+
ConsolidatedReportMetric.add_member(:lenses, Shapes::ShapeRef.new(shape: LensMetrics, location_name: "Lenses"))
|
420
|
+
ConsolidatedReportMetric.add_member(:lenses_applied_count, Shapes::ShapeRef.new(shape: LensesAppliedCount, location_name: "LensesAppliedCount"))
|
421
|
+
ConsolidatedReportMetric.struct_class = Types::ConsolidatedReportMetric
|
422
|
+
|
423
|
+
ConsolidatedReportMetrics.member = Shapes::ShapeRef.new(shape: ConsolidatedReportMetric)
|
424
|
+
|
390
425
|
CreateLensShareInput.add_member(:lens_alias, Shapes::ShapeRef.new(shape: LensAlias, required: true, location: "uri", location_name: "LensAlias"))
|
391
426
|
CreateLensShareInput.add_member(:shared_with, Shapes::ShapeRef.new(shape: SharedWith, required: true, location_name: "SharedWith"))
|
392
427
|
CreateLensShareInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
@@ -490,6 +525,17 @@ module Aws::WellArchitected
|
|
490
525
|
GetAnswerOutput.add_member(:answer, Shapes::ShapeRef.new(shape: Answer, location_name: "Answer"))
|
491
526
|
GetAnswerOutput.struct_class = Types::GetAnswerOutput
|
492
527
|
|
528
|
+
GetConsolidatedReportInput.add_member(:format, Shapes::ShapeRef.new(shape: ReportFormat, required: true, location: "querystring", location_name: "Format"))
|
529
|
+
GetConsolidatedReportInput.add_member(:include_shared_resources, Shapes::ShapeRef.new(shape: IncludeSharedResources, location: "querystring", location_name: "IncludeSharedResources"))
|
530
|
+
GetConsolidatedReportInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
531
|
+
GetConsolidatedReportInput.add_member(:max_results, Shapes::ShapeRef.new(shape: GetConsolidatedReportMaxResults, location: "querystring", location_name: "MaxResults"))
|
532
|
+
GetConsolidatedReportInput.struct_class = Types::GetConsolidatedReportInput
|
533
|
+
|
534
|
+
GetConsolidatedReportOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: ConsolidatedReportMetrics, location_name: "Metrics"))
|
535
|
+
GetConsolidatedReportOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
536
|
+
GetConsolidatedReportOutput.add_member(:base_64_string, Shapes::ShapeRef.new(shape: Base64String, location_name: "Base64String"))
|
537
|
+
GetConsolidatedReportOutput.struct_class = Types::GetConsolidatedReportOutput
|
538
|
+
|
493
539
|
GetLensInput.add_member(:lens_alias, Shapes::ShapeRef.new(shape: LensAlias, required: true, location: "uri", location_name: "LensAlias"))
|
494
540
|
GetLensInput.add_member(:lens_version, Shapes::ShapeRef.new(shape: LensVersion, location: "querystring", location_name: "LensVersion"))
|
495
541
|
GetLensInput.struct_class = Types::GetLensInput
|
@@ -578,6 +624,13 @@ module Aws::WellArchitected
|
|
578
624
|
|
579
625
|
LensAliases.member = Shapes::ShapeRef.new(shape: LensAlias)
|
580
626
|
|
627
|
+
LensMetric.add_member(:lens_arn, Shapes::ShapeRef.new(shape: LensArn, location_name: "LensArn"))
|
628
|
+
LensMetric.add_member(:pillars, Shapes::ShapeRef.new(shape: PillarMetrics, location_name: "Pillars"))
|
629
|
+
LensMetric.add_member(:risk_counts, Shapes::ShapeRef.new(shape: RiskCounts, location_name: "RiskCounts"))
|
630
|
+
LensMetric.struct_class = Types::LensMetric
|
631
|
+
|
632
|
+
LensMetrics.member = Shapes::ShapeRef.new(shape: LensMetric)
|
633
|
+
|
581
634
|
LensReview.add_member(:lens_alias, Shapes::ShapeRef.new(shape: LensAlias, location_name: "LensAlias"))
|
582
635
|
LensReview.add_member(:lens_arn, Shapes::ShapeRef.new(shape: LensArn, location_name: "LensArn"))
|
583
636
|
LensReview.add_member(:lens_version, Shapes::ShapeRef.new(shape: LensVersion, location_name: "LensVersion"))
|
@@ -813,6 +866,13 @@ module Aws::WellArchitected
|
|
813
866
|
|
814
867
|
PillarDifferences.member = Shapes::ShapeRef.new(shape: PillarDifference)
|
815
868
|
|
869
|
+
PillarMetric.add_member(:pillar_id, Shapes::ShapeRef.new(shape: PillarId, location_name: "PillarId"))
|
870
|
+
PillarMetric.add_member(:risk_counts, Shapes::ShapeRef.new(shape: RiskCounts, location_name: "RiskCounts"))
|
871
|
+
PillarMetric.add_member(:questions, Shapes::ShapeRef.new(shape: QuestionMetrics, location_name: "Questions"))
|
872
|
+
PillarMetric.struct_class = Types::PillarMetric
|
873
|
+
|
874
|
+
PillarMetrics.member = Shapes::ShapeRef.new(shape: PillarMetric)
|
875
|
+
|
816
876
|
PillarNotes.key = Shapes::ShapeRef.new(shape: PillarId)
|
817
877
|
PillarNotes.value = Shapes::ShapeRef.new(shape: Notes)
|
818
878
|
|
@@ -831,6 +891,13 @@ module Aws::WellArchitected
|
|
831
891
|
|
832
892
|
QuestionDifferences.member = Shapes::ShapeRef.new(shape: QuestionDifference)
|
833
893
|
|
894
|
+
QuestionMetric.add_member(:question_id, Shapes::ShapeRef.new(shape: QuestionId, location_name: "QuestionId"))
|
895
|
+
QuestionMetric.add_member(:risk, Shapes::ShapeRef.new(shape: Risk, location_name: "Risk"))
|
896
|
+
QuestionMetric.add_member(:best_practices, Shapes::ShapeRef.new(shape: BestPractices, location_name: "BestPractices"))
|
897
|
+
QuestionMetric.struct_class = Types::QuestionMetric
|
898
|
+
|
899
|
+
QuestionMetrics.member = Shapes::ShapeRef.new(shape: QuestionMetric)
|
900
|
+
|
834
901
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "Message"))
|
835
902
|
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ExceptionResourceId, required: true, location_name: "ResourceId"))
|
836
903
|
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ExceptionResourceType, required: true, location_name: "ResourceType"))
|
@@ -1140,6 +1207,7 @@ module Aws::WellArchitected
|
|
1140
1207
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1141
1208
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1142
1209
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1210
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1143
1211
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1144
1212
|
end)
|
1145
1213
|
|
@@ -1254,6 +1322,25 @@ module Aws::WellArchitected
|
|
1254
1322
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1255
1323
|
end)
|
1256
1324
|
|
1325
|
+
api.add_operation(:get_consolidated_report, Seahorse::Model::Operation.new.tap do |o|
|
1326
|
+
o.name = "GetConsolidatedReport"
|
1327
|
+
o.http_method = "GET"
|
1328
|
+
o.http_request_uri = "/consolidatedReport"
|
1329
|
+
o.input = Shapes::ShapeRef.new(shape: GetConsolidatedReportInput)
|
1330
|
+
o.output = Shapes::ShapeRef.new(shape: GetConsolidatedReportOutput)
|
1331
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1332
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1333
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1334
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1335
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1336
|
+
o[:pager] = Aws::Pager.new(
|
1337
|
+
limit_key: "max_results",
|
1338
|
+
tokens: {
|
1339
|
+
"next_token" => "next_token"
|
1340
|
+
}
|
1341
|
+
)
|
1342
|
+
end)
|
1343
|
+
|
1257
1344
|
api.add_operation(:get_lens, Seahorse::Model::Operation.new.tap do |o|
|
1258
1345
|
o.name = "GetLens"
|
1259
1346
|
o.http_method = "GET"
|
@@ -14,36 +14,39 @@ module Aws::WellArchitected
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://wellarchitected.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -193,6 +193,20 @@ module Aws::WellArchitected
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
+
class GetConsolidatedReport
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::WellArchitected::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
196
210
|
class GetLens
|
197
211
|
def self.build(context)
|
198
212
|
unless context.config.regional_endpoint
|
@@ -82,6 +82,8 @@ module Aws::WellArchitected
|
|
82
82
|
Aws::WellArchitected::Endpoints::ExportLens.build(context)
|
83
83
|
when :get_answer
|
84
84
|
Aws::WellArchitected::Endpoints::GetAnswer.build(context)
|
85
|
+
when :get_consolidated_report
|
86
|
+
Aws::WellArchitected::Endpoints::GetConsolidatedReport.build(context)
|
85
87
|
when :get_lens
|
86
88
|
Aws::WellArchitected::Endpoints::GetLens.build(context)
|
87
89
|
when :get_lens_review
|