aws-sdk-accessanalyzer 1.42.0 → 1.44.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-accessanalyzer/client.rb +325 -19
- data/lib/aws-sdk-accessanalyzer/client_api.rb +247 -0
- data/lib/aws-sdk-accessanalyzer/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-accessanalyzer/endpoints.rb +56 -0
- data/lib/aws-sdk-accessanalyzer/errors.rb +36 -0
- data/lib/aws-sdk-accessanalyzer/plugins/endpoints.rb +11 -2
- data/lib/aws-sdk-accessanalyzer/types.rb +724 -13
- data/lib/aws-sdk-accessanalyzer.rb +1 -1
- metadata +2 -2
@@ -13,6 +13,10 @@ module Aws::AccessAnalyzer
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
Access = Shapes::StructureShape.new(name: 'Access')
|
17
|
+
AccessActionsList = Shapes::ListShape.new(name: 'AccessActionsList')
|
18
|
+
AccessCheckPolicyDocument = Shapes::StringShape.new(name: 'AccessCheckPolicyDocument')
|
19
|
+
AccessCheckPolicyType = Shapes::StringShape.new(name: 'AccessCheckPolicyType')
|
16
20
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
21
|
AccessPointArn = Shapes::StringShape.new(name: 'AccessPointArn')
|
18
22
|
AccessPointPolicy = Shapes::StringShape.new(name: 'AccessPointPolicy')
|
@@ -30,11 +34,13 @@ module Aws::AccessAnalyzer
|
|
30
34
|
AclGrantee = Shapes::UnionShape.new(name: 'AclGrantee')
|
31
35
|
AclPermission = Shapes::StringShape.new(name: 'AclPermission')
|
32
36
|
AclUri = Shapes::StringShape.new(name: 'AclUri')
|
37
|
+
Action = Shapes::StringShape.new(name: 'Action')
|
33
38
|
ActionList = Shapes::ListShape.new(name: 'ActionList')
|
34
39
|
AnalyzedResource = Shapes::StructureShape.new(name: 'AnalyzedResource')
|
35
40
|
AnalyzedResourceSummary = Shapes::StructureShape.new(name: 'AnalyzedResourceSummary')
|
36
41
|
AnalyzedResourcesList = Shapes::ListShape.new(name: 'AnalyzedResourcesList')
|
37
42
|
AnalyzerArn = Shapes::StringShape.new(name: 'AnalyzerArn')
|
43
|
+
AnalyzerConfiguration = Shapes::UnionShape.new(name: 'AnalyzerConfiguration')
|
38
44
|
AnalyzerStatus = Shapes::StringShape.new(name: 'AnalyzerStatus')
|
39
45
|
AnalyzerSummary = Shapes::StructureShape.new(name: 'AnalyzerSummary')
|
40
46
|
AnalyzersList = Shapes::ListShape.new(name: 'AnalyzersList')
|
@@ -44,6 +50,13 @@ module Aws::AccessAnalyzer
|
|
44
50
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
45
51
|
CancelPolicyGenerationRequest = Shapes::StructureShape.new(name: 'CancelPolicyGenerationRequest')
|
46
52
|
CancelPolicyGenerationResponse = Shapes::StructureShape.new(name: 'CancelPolicyGenerationResponse')
|
53
|
+
CheckAccessNotGrantedRequest = Shapes::StructureShape.new(name: 'CheckAccessNotGrantedRequest')
|
54
|
+
CheckAccessNotGrantedRequestAccessList = Shapes::ListShape.new(name: 'CheckAccessNotGrantedRequestAccessList')
|
55
|
+
CheckAccessNotGrantedResponse = Shapes::StructureShape.new(name: 'CheckAccessNotGrantedResponse')
|
56
|
+
CheckAccessNotGrantedResult = Shapes::StringShape.new(name: 'CheckAccessNotGrantedResult')
|
57
|
+
CheckNoNewAccessRequest = Shapes::StructureShape.new(name: 'CheckNoNewAccessRequest')
|
58
|
+
CheckNoNewAccessResponse = Shapes::StructureShape.new(name: 'CheckNoNewAccessResponse')
|
59
|
+
CheckNoNewAccessResult = Shapes::StringShape.new(name: 'CheckNoNewAccessResult')
|
47
60
|
CloudTrailArn = Shapes::StringShape.new(name: 'CloudTrailArn')
|
48
61
|
CloudTrailDetails = Shapes::StructureShape.new(name: 'CloudTrailDetails')
|
49
62
|
CloudTrailProperties = Shapes::StructureShape.new(name: 'CloudTrailProperties')
|
@@ -70,9 +83,12 @@ module Aws::AccessAnalyzer
|
|
70
83
|
EcrRepositoryPolicy = Shapes::StringShape.new(name: 'EcrRepositoryPolicy')
|
71
84
|
EfsFileSystemConfiguration = Shapes::StructureShape.new(name: 'EfsFileSystemConfiguration')
|
72
85
|
EfsFileSystemPolicy = Shapes::StringShape.new(name: 'EfsFileSystemPolicy')
|
86
|
+
ExternalAccessDetails = Shapes::StructureShape.new(name: 'ExternalAccessDetails')
|
73
87
|
FilterCriteriaMap = Shapes::MapShape.new(name: 'FilterCriteriaMap')
|
74
88
|
Finding = Shapes::StructureShape.new(name: 'Finding')
|
75
89
|
FindingChangeType = Shapes::StringShape.new(name: 'FindingChangeType')
|
90
|
+
FindingDetails = Shapes::UnionShape.new(name: 'FindingDetails')
|
91
|
+
FindingDetailsList = Shapes::ListShape.new(name: 'FindingDetailsList')
|
76
92
|
FindingId = Shapes::StringShape.new(name: 'FindingId')
|
77
93
|
FindingIdList = Shapes::ListShape.new(name: 'FindingIdList')
|
78
94
|
FindingSource = Shapes::StructureShape.new(name: 'FindingSource')
|
@@ -82,7 +98,10 @@ module Aws::AccessAnalyzer
|
|
82
98
|
FindingStatus = Shapes::StringShape.new(name: 'FindingStatus')
|
83
99
|
FindingStatusUpdate = Shapes::StringShape.new(name: 'FindingStatusUpdate')
|
84
100
|
FindingSummary = Shapes::StructureShape.new(name: 'FindingSummary')
|
101
|
+
FindingSummaryV2 = Shapes::StructureShape.new(name: 'FindingSummaryV2')
|
102
|
+
FindingType = Shapes::StringShape.new(name: 'FindingType')
|
85
103
|
FindingsList = Shapes::ListShape.new(name: 'FindingsList')
|
104
|
+
FindingsListV2 = Shapes::ListShape.new(name: 'FindingsListV2')
|
86
105
|
GeneratedPolicy = Shapes::StructureShape.new(name: 'GeneratedPolicy')
|
87
106
|
GeneratedPolicyList = Shapes::ListShape.new(name: 'GeneratedPolicyList')
|
88
107
|
GeneratedPolicyProperties = Shapes::StructureShape.new(name: 'GeneratedPolicyProperties')
|
@@ -97,6 +116,8 @@ module Aws::AccessAnalyzer
|
|
97
116
|
GetArchiveRuleResponse = Shapes::StructureShape.new(name: 'GetArchiveRuleResponse')
|
98
117
|
GetFindingRequest = Shapes::StructureShape.new(name: 'GetFindingRequest')
|
99
118
|
GetFindingResponse = Shapes::StructureShape.new(name: 'GetFindingResponse')
|
119
|
+
GetFindingV2Request = Shapes::StructureShape.new(name: 'GetFindingV2Request')
|
120
|
+
GetFindingV2Response = Shapes::StructureShape.new(name: 'GetFindingV2Response')
|
100
121
|
GetGeneratedPolicyRequest = Shapes::StructureShape.new(name: 'GetGeneratedPolicyRequest')
|
101
122
|
GetGeneratedPolicyResponse = Shapes::StructureShape.new(name: 'GetGeneratedPolicyResponse')
|
102
123
|
GranteePrincipal = Shapes::StringShape.new(name: 'GranteePrincipal')
|
@@ -107,6 +128,7 @@ module Aws::AccessAnalyzer
|
|
107
128
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
108
129
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
109
130
|
InternetConfiguration = Shapes::StructureShape.new(name: 'InternetConfiguration')
|
131
|
+
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
110
132
|
IssueCode = Shapes::StringShape.new(name: 'IssueCode')
|
111
133
|
IssuingAccount = Shapes::StringShape.new(name: 'IssuingAccount')
|
112
134
|
JobDetails = Shapes::StructureShape.new(name: 'JobDetails')
|
@@ -138,6 +160,8 @@ module Aws::AccessAnalyzer
|
|
138
160
|
ListArchiveRulesResponse = Shapes::StructureShape.new(name: 'ListArchiveRulesResponse')
|
139
161
|
ListFindingsRequest = Shapes::StructureShape.new(name: 'ListFindingsRequest')
|
140
162
|
ListFindingsResponse = Shapes::StructureShape.new(name: 'ListFindingsResponse')
|
163
|
+
ListFindingsV2Request = Shapes::StructureShape.new(name: 'ListFindingsV2Request')
|
164
|
+
ListFindingsV2Response = Shapes::StructureShape.new(name: 'ListFindingsV2Response')
|
141
165
|
ListPolicyGenerationsRequest = Shapes::StructureShape.new(name: 'ListPolicyGenerationsRequest')
|
142
166
|
ListPolicyGenerationsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListPolicyGenerationsRequestMaxResultsInteger')
|
143
167
|
ListPolicyGenerationsResponse = Shapes::StructureShape.new(name: 'ListPolicyGenerationsResponse')
|
@@ -175,6 +199,8 @@ module Aws::AccessAnalyzer
|
|
175
199
|
RdsDbSnapshotConfiguration = Shapes::StructureShape.new(name: 'RdsDbSnapshotConfiguration')
|
176
200
|
RdsDbSnapshotKmsKeyId = Shapes::StringShape.new(name: 'RdsDbSnapshotKmsKeyId')
|
177
201
|
ReasonCode = Shapes::StringShape.new(name: 'ReasonCode')
|
202
|
+
ReasonSummary = Shapes::StructureShape.new(name: 'ReasonSummary')
|
203
|
+
ReasonSummaryList = Shapes::ListShape.new(name: 'ReasonSummaryList')
|
178
204
|
RegionList = Shapes::ListShape.new(name: 'RegionList')
|
179
205
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
180
206
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -187,6 +213,8 @@ module Aws::AccessAnalyzer
|
|
187
213
|
S3BucketAclGrantConfigurationsList = Shapes::ListShape.new(name: 'S3BucketAclGrantConfigurationsList')
|
188
214
|
S3BucketConfiguration = Shapes::StructureShape.new(name: 'S3BucketConfiguration')
|
189
215
|
S3BucketPolicy = Shapes::StringShape.new(name: 'S3BucketPolicy')
|
216
|
+
S3ExpressDirectoryBucketConfiguration = Shapes::StructureShape.new(name: 'S3ExpressDirectoryBucketConfiguration')
|
217
|
+
S3ExpressDirectoryBucketPolicy = Shapes::StringShape.new(name: 'S3ExpressDirectoryBucketPolicy')
|
190
218
|
S3PublicAccessBlockConfiguration = Shapes::StructureShape.new(name: 'S3PublicAccessBlockConfiguration')
|
191
219
|
SecretsManagerSecretConfiguration = Shapes::StructureShape.new(name: 'SecretsManagerSecretConfiguration')
|
192
220
|
SecretsManagerSecretKmsId = Shapes::StringShape.new(name: 'SecretsManagerSecretKmsId')
|
@@ -217,8 +245,16 @@ module Aws::AccessAnalyzer
|
|
217
245
|
TrailProperties = Shapes::StructureShape.new(name: 'TrailProperties')
|
218
246
|
TrailPropertiesList = Shapes::ListShape.new(name: 'TrailPropertiesList')
|
219
247
|
Type = Shapes::StringShape.new(name: 'Type')
|
248
|
+
UnprocessableEntityException = Shapes::StructureShape.new(name: 'UnprocessableEntityException')
|
220
249
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
221
250
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
251
|
+
UnusedAccessConfiguration = Shapes::StructureShape.new(name: 'UnusedAccessConfiguration')
|
252
|
+
UnusedAction = Shapes::StructureShape.new(name: 'UnusedAction')
|
253
|
+
UnusedActionList = Shapes::ListShape.new(name: 'UnusedActionList')
|
254
|
+
UnusedIamRoleDetails = Shapes::StructureShape.new(name: 'UnusedIamRoleDetails')
|
255
|
+
UnusedIamUserAccessKeyDetails = Shapes::StructureShape.new(name: 'UnusedIamUserAccessKeyDetails')
|
256
|
+
UnusedIamUserPasswordDetails = Shapes::StructureShape.new(name: 'UnusedIamUserPasswordDetails')
|
257
|
+
UnusedPermissionDetails = Shapes::StructureShape.new(name: 'UnusedPermissionDetails')
|
222
258
|
UpdateArchiveRuleRequest = Shapes::StructureShape.new(name: 'UpdateArchiveRuleRequest')
|
223
259
|
UpdateFindingsRequest = Shapes::StructureShape.new(name: 'UpdateFindingsRequest')
|
224
260
|
ValidatePolicyFinding = Shapes::StructureShape.new(name: 'ValidatePolicyFinding')
|
@@ -235,6 +271,11 @@ module Aws::AccessAnalyzer
|
|
235
271
|
VpcConfiguration = Shapes::StructureShape.new(name: 'VpcConfiguration')
|
236
272
|
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
237
273
|
|
274
|
+
Access.add_member(:actions, Shapes::ShapeRef.new(shape: AccessActionsList, required: true, location_name: "actions"))
|
275
|
+
Access.struct_class = Types::Access
|
276
|
+
|
277
|
+
AccessActionsList.member = Shapes::ShapeRef.new(shape: Action)
|
278
|
+
|
238
279
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
239
280
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
240
281
|
|
@@ -307,6 +348,12 @@ module Aws::AccessAnalyzer
|
|
307
348
|
|
308
349
|
AnalyzedResourcesList.member = Shapes::ShapeRef.new(shape: AnalyzedResourceSummary)
|
309
350
|
|
351
|
+
AnalyzerConfiguration.add_member(:unused_access, Shapes::ShapeRef.new(shape: UnusedAccessConfiguration, location_name: "unusedAccess"))
|
352
|
+
AnalyzerConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
353
|
+
AnalyzerConfiguration.add_member_subclass(:unused_access, Types::AnalyzerConfiguration::UnusedAccess)
|
354
|
+
AnalyzerConfiguration.add_member_subclass(:unknown, Types::AnalyzerConfiguration::Unknown)
|
355
|
+
AnalyzerConfiguration.struct_class = Types::AnalyzerConfiguration
|
356
|
+
|
310
357
|
AnalyzerSummary.add_member(:arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "arn"))
|
311
358
|
AnalyzerSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
312
359
|
AnalyzerSummary.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location_name: "type"))
|
@@ -316,6 +363,7 @@ module Aws::AccessAnalyzer
|
|
316
363
|
AnalyzerSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
317
364
|
AnalyzerSummary.add_member(:status, Shapes::ShapeRef.new(shape: AnalyzerStatus, required: true, location_name: "status"))
|
318
365
|
AnalyzerSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
|
366
|
+
AnalyzerSummary.add_member(:configuration, Shapes::ShapeRef.new(shape: AnalyzerConfiguration, location_name: "configuration"))
|
319
367
|
AnalyzerSummary.struct_class = Types::AnalyzerSummary
|
320
368
|
|
321
369
|
AnalyzersList.member = Shapes::ShapeRef.new(shape: AnalyzerSummary)
|
@@ -338,6 +386,28 @@ module Aws::AccessAnalyzer
|
|
338
386
|
|
339
387
|
CancelPolicyGenerationResponse.struct_class = Types::CancelPolicyGenerationResponse
|
340
388
|
|
389
|
+
CheckAccessNotGrantedRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: AccessCheckPolicyDocument, required: true, location_name: "policyDocument"))
|
390
|
+
CheckAccessNotGrantedRequest.add_member(:access, Shapes::ShapeRef.new(shape: CheckAccessNotGrantedRequestAccessList, required: true, location_name: "access"))
|
391
|
+
CheckAccessNotGrantedRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: AccessCheckPolicyType, required: true, location_name: "policyType"))
|
392
|
+
CheckAccessNotGrantedRequest.struct_class = Types::CheckAccessNotGrantedRequest
|
393
|
+
|
394
|
+
CheckAccessNotGrantedRequestAccessList.member = Shapes::ShapeRef.new(shape: Access)
|
395
|
+
|
396
|
+
CheckAccessNotGrantedResponse.add_member(:result, Shapes::ShapeRef.new(shape: CheckAccessNotGrantedResult, location_name: "result"))
|
397
|
+
CheckAccessNotGrantedResponse.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
398
|
+
CheckAccessNotGrantedResponse.add_member(:reasons, Shapes::ShapeRef.new(shape: ReasonSummaryList, location_name: "reasons"))
|
399
|
+
CheckAccessNotGrantedResponse.struct_class = Types::CheckAccessNotGrantedResponse
|
400
|
+
|
401
|
+
CheckNoNewAccessRequest.add_member(:new_policy_document, Shapes::ShapeRef.new(shape: AccessCheckPolicyDocument, required: true, location_name: "newPolicyDocument"))
|
402
|
+
CheckNoNewAccessRequest.add_member(:existing_policy_document, Shapes::ShapeRef.new(shape: AccessCheckPolicyDocument, required: true, location_name: "existingPolicyDocument"))
|
403
|
+
CheckNoNewAccessRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: AccessCheckPolicyType, required: true, location_name: "policyType"))
|
404
|
+
CheckNoNewAccessRequest.struct_class = Types::CheckNoNewAccessRequest
|
405
|
+
|
406
|
+
CheckNoNewAccessResponse.add_member(:result, Shapes::ShapeRef.new(shape: CheckNoNewAccessResult, location_name: "result"))
|
407
|
+
CheckNoNewAccessResponse.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
408
|
+
CheckNoNewAccessResponse.add_member(:reasons, Shapes::ShapeRef.new(shape: ReasonSummaryList, location_name: "reasons"))
|
409
|
+
CheckNoNewAccessResponse.struct_class = Types::CheckNoNewAccessResponse
|
410
|
+
|
341
411
|
CloudTrailDetails.add_member(:trails, Shapes::ShapeRef.new(shape: TrailList, required: true, location_name: "trails"))
|
342
412
|
CloudTrailDetails.add_member(:access_role, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "accessRole"))
|
343
413
|
CloudTrailDetails.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startTime"))
|
@@ -363,6 +433,7 @@ module Aws::AccessAnalyzer
|
|
363
433
|
Configuration.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3BucketConfiguration, location_name: "s3Bucket"))
|
364
434
|
Configuration.add_member(:sns_topic, Shapes::ShapeRef.new(shape: SnsTopicConfiguration, location_name: "snsTopic"))
|
365
435
|
Configuration.add_member(:sqs_queue, Shapes::ShapeRef.new(shape: SqsQueueConfiguration, location_name: "sqsQueue"))
|
436
|
+
Configuration.add_member(:s3_express_directory_bucket, Shapes::ShapeRef.new(shape: S3ExpressDirectoryBucketConfiguration, location_name: "s3ExpressDirectoryBucket"))
|
366
437
|
Configuration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
367
438
|
Configuration.add_member_subclass(:ebs_snapshot, Types::Configuration::EbsSnapshot)
|
368
439
|
Configuration.add_member_subclass(:ecr_repository, Types::Configuration::EcrRepository)
|
@@ -375,6 +446,7 @@ module Aws::AccessAnalyzer
|
|
375
446
|
Configuration.add_member_subclass(:s3_bucket, Types::Configuration::S3Bucket)
|
376
447
|
Configuration.add_member_subclass(:sns_topic, Types::Configuration::SnsTopic)
|
377
448
|
Configuration.add_member_subclass(:sqs_queue, Types::Configuration::SqsQueue)
|
449
|
+
Configuration.add_member_subclass(:s3_express_directory_bucket, Types::Configuration::S3ExpressDirectoryBucket)
|
378
450
|
Configuration.add_member_subclass(:unknown, Types::Configuration::Unknown)
|
379
451
|
Configuration.struct_class = Types::Configuration
|
380
452
|
|
@@ -399,6 +471,7 @@ module Aws::AccessAnalyzer
|
|
399
471
|
CreateAnalyzerRequest.add_member(:archive_rules, Shapes::ShapeRef.new(shape: InlineArchiveRulesList, location_name: "archiveRules"))
|
400
472
|
CreateAnalyzerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
401
473
|
CreateAnalyzerRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
474
|
+
CreateAnalyzerRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: AnalyzerConfiguration, location_name: "configuration"))
|
402
475
|
CreateAnalyzerRequest.struct_class = Types::CreateAnalyzerRequest
|
403
476
|
|
404
477
|
CreateAnalyzerResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AnalyzerArn, location_name: "arn"))
|
@@ -440,6 +513,13 @@ module Aws::AccessAnalyzer
|
|
440
513
|
EfsFileSystemConfiguration.add_member(:file_system_policy, Shapes::ShapeRef.new(shape: EfsFileSystemPolicy, location_name: "fileSystemPolicy"))
|
441
514
|
EfsFileSystemConfiguration.struct_class = Types::EfsFileSystemConfiguration
|
442
515
|
|
516
|
+
ExternalAccessDetails.add_member(:action, Shapes::ShapeRef.new(shape: ActionList, location_name: "action"))
|
517
|
+
ExternalAccessDetails.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionKeyMap, required: true, location_name: "condition"))
|
518
|
+
ExternalAccessDetails.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPublic"))
|
519
|
+
ExternalAccessDetails.add_member(:principal, Shapes::ShapeRef.new(shape: PrincipalMap, location_name: "principal"))
|
520
|
+
ExternalAccessDetails.add_member(:sources, Shapes::ShapeRef.new(shape: FindingSourceList, location_name: "sources"))
|
521
|
+
ExternalAccessDetails.struct_class = Types::ExternalAccessDetails
|
522
|
+
|
443
523
|
FilterCriteriaMap.key = Shapes::ShapeRef.new(shape: String)
|
444
524
|
FilterCriteriaMap.value = Shapes::ShapeRef.new(shape: Criterion)
|
445
525
|
|
@@ -459,6 +539,22 @@ module Aws::AccessAnalyzer
|
|
459
539
|
Finding.add_member(:sources, Shapes::ShapeRef.new(shape: FindingSourceList, location_name: "sources"))
|
460
540
|
Finding.struct_class = Types::Finding
|
461
541
|
|
542
|
+
FindingDetails.add_member(:external_access_details, Shapes::ShapeRef.new(shape: ExternalAccessDetails, location_name: "externalAccessDetails"))
|
543
|
+
FindingDetails.add_member(:unused_permission_details, Shapes::ShapeRef.new(shape: UnusedPermissionDetails, location_name: "unusedPermissionDetails"))
|
544
|
+
FindingDetails.add_member(:unused_iam_user_access_key_details, Shapes::ShapeRef.new(shape: UnusedIamUserAccessKeyDetails, location_name: "unusedIamUserAccessKeyDetails"))
|
545
|
+
FindingDetails.add_member(:unused_iam_role_details, Shapes::ShapeRef.new(shape: UnusedIamRoleDetails, location_name: "unusedIamRoleDetails"))
|
546
|
+
FindingDetails.add_member(:unused_iam_user_password_details, Shapes::ShapeRef.new(shape: UnusedIamUserPasswordDetails, location_name: "unusedIamUserPasswordDetails"))
|
547
|
+
FindingDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
548
|
+
FindingDetails.add_member_subclass(:external_access_details, Types::FindingDetails::ExternalAccessDetails)
|
549
|
+
FindingDetails.add_member_subclass(:unused_permission_details, Types::FindingDetails::UnusedPermissionDetails)
|
550
|
+
FindingDetails.add_member_subclass(:unused_iam_user_access_key_details, Types::FindingDetails::UnusedIamUserAccessKeyDetails)
|
551
|
+
FindingDetails.add_member_subclass(:unused_iam_role_details, Types::FindingDetails::UnusedIamRoleDetails)
|
552
|
+
FindingDetails.add_member_subclass(:unused_iam_user_password_details, Types::FindingDetails::UnusedIamUserPasswordDetails)
|
553
|
+
FindingDetails.add_member_subclass(:unknown, Types::FindingDetails::Unknown)
|
554
|
+
FindingDetails.struct_class = Types::FindingDetails
|
555
|
+
|
556
|
+
FindingDetailsList.member = Shapes::ShapeRef.new(shape: FindingDetails)
|
557
|
+
|
462
558
|
FindingIdList.member = Shapes::ShapeRef.new(shape: FindingId)
|
463
559
|
|
464
560
|
FindingSource.add_member(:type, Shapes::ShapeRef.new(shape: FindingSourceType, required: true, location_name: "type"))
|
@@ -487,8 +583,22 @@ module Aws::AccessAnalyzer
|
|
487
583
|
FindingSummary.add_member(:sources, Shapes::ShapeRef.new(shape: FindingSourceList, location_name: "sources"))
|
488
584
|
FindingSummary.struct_class = Types::FindingSummary
|
489
585
|
|
586
|
+
FindingSummaryV2.add_member(:analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "analyzedAt"))
|
587
|
+
FindingSummaryV2.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
588
|
+
FindingSummaryV2.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
589
|
+
FindingSummaryV2.add_member(:id, Shapes::ShapeRef.new(shape: FindingId, required: true, location_name: "id"))
|
590
|
+
FindingSummaryV2.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
|
591
|
+
FindingSummaryV2.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
592
|
+
FindingSummaryV2.add_member(:resource_owner_account, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceOwnerAccount"))
|
593
|
+
FindingSummaryV2.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, required: true, location_name: "status"))
|
594
|
+
FindingSummaryV2.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
595
|
+
FindingSummaryV2.add_member(:finding_type, Shapes::ShapeRef.new(shape: FindingType, location_name: "findingType"))
|
596
|
+
FindingSummaryV2.struct_class = Types::FindingSummaryV2
|
597
|
+
|
490
598
|
FindingsList.member = Shapes::ShapeRef.new(shape: FindingSummary)
|
491
599
|
|
600
|
+
FindingsListV2.member = Shapes::ShapeRef.new(shape: FindingSummaryV2)
|
601
|
+
|
492
602
|
GeneratedPolicy.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
|
493
603
|
GeneratedPolicy.struct_class = Types::GeneratedPolicy
|
494
604
|
|
@@ -537,6 +647,26 @@ module Aws::AccessAnalyzer
|
|
537
647
|
GetFindingResponse.add_member(:finding, Shapes::ShapeRef.new(shape: Finding, location_name: "finding"))
|
538
648
|
GetFindingResponse.struct_class = Types::GetFindingResponse
|
539
649
|
|
650
|
+
GetFindingV2Request.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location: "querystring", location_name: "analyzerArn"))
|
651
|
+
GetFindingV2Request.add_member(:id, Shapes::ShapeRef.new(shape: FindingId, required: true, location: "uri", location_name: "id"))
|
652
|
+
GetFindingV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "maxResults"))
|
653
|
+
GetFindingV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "nextToken"))
|
654
|
+
GetFindingV2Request.struct_class = Types::GetFindingV2Request
|
655
|
+
|
656
|
+
GetFindingV2Response.add_member(:analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "analyzedAt"))
|
657
|
+
GetFindingV2Response.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
658
|
+
GetFindingV2Response.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
659
|
+
GetFindingV2Response.add_member(:id, Shapes::ShapeRef.new(shape: FindingId, required: true, location_name: "id"))
|
660
|
+
GetFindingV2Response.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
661
|
+
GetFindingV2Response.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
|
662
|
+
GetFindingV2Response.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
663
|
+
GetFindingV2Response.add_member(:resource_owner_account, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceOwnerAccount"))
|
664
|
+
GetFindingV2Response.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, required: true, location_name: "status"))
|
665
|
+
GetFindingV2Response.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
666
|
+
GetFindingV2Response.add_member(:finding_details, Shapes::ShapeRef.new(shape: FindingDetailsList, required: true, location_name: "findingDetails"))
|
667
|
+
GetFindingV2Response.add_member(:finding_type, Shapes::ShapeRef.new(shape: FindingType, location_name: "findingType"))
|
668
|
+
GetFindingV2Response.struct_class = Types::GetFindingV2Response
|
669
|
+
|
540
670
|
GetGeneratedPolicyRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
|
541
671
|
GetGeneratedPolicyRequest.add_member(:include_resource_placeholders, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "includeResourcePlaceholders"))
|
542
672
|
GetGeneratedPolicyRequest.add_member(:include_service_level_template, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "includeServiceLevelTemplate"))
|
@@ -561,6 +691,9 @@ module Aws::AccessAnalyzer
|
|
561
691
|
|
562
692
|
InternetConfiguration.struct_class = Types::InternetConfiguration
|
563
693
|
|
694
|
+
InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
695
|
+
InvalidParameterException.struct_class = Types::InvalidParameterException
|
696
|
+
|
564
697
|
JobDetails.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "jobId"))
|
565
698
|
JobDetails.add_member(:status, Shapes::ShapeRef.new(shape: JobStatus, required: true, location_name: "status"))
|
566
699
|
JobDetails.add_member(:started_on, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startedOn"))
|
@@ -656,6 +789,17 @@ module Aws::AccessAnalyzer
|
|
656
789
|
ListFindingsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
657
790
|
ListFindingsResponse.struct_class = Types::ListFindingsResponse
|
658
791
|
|
792
|
+
ListFindingsV2Request.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "analyzerArn"))
|
793
|
+
ListFindingsV2Request.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, location_name: "filter"))
|
794
|
+
ListFindingsV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
|
795
|
+
ListFindingsV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
796
|
+
ListFindingsV2Request.add_member(:sort, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "sort"))
|
797
|
+
ListFindingsV2Request.struct_class = Types::ListFindingsV2Request
|
798
|
+
|
799
|
+
ListFindingsV2Response.add_member(:findings, Shapes::ShapeRef.new(shape: FindingsListV2, required: true, location_name: "findings"))
|
800
|
+
ListFindingsV2Response.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
801
|
+
ListFindingsV2Response.struct_class = Types::ListFindingsV2Response
|
802
|
+
|
659
803
|
ListPolicyGenerationsRequest.add_member(:principal_arn, Shapes::ShapeRef.new(shape: PrincipalArn, location: "querystring", location_name: "principalArn"))
|
660
804
|
ListPolicyGenerationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListPolicyGenerationsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
661
805
|
ListPolicyGenerationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "nextToken"))
|
@@ -749,6 +893,13 @@ module Aws::AccessAnalyzer
|
|
749
893
|
RdsDbSnapshotConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: RdsDbSnapshotKmsKeyId, location_name: "kmsKeyId"))
|
750
894
|
RdsDbSnapshotConfiguration.struct_class = Types::RdsDbSnapshotConfiguration
|
751
895
|
|
896
|
+
ReasonSummary.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
897
|
+
ReasonSummary.add_member(:statement_index, Shapes::ShapeRef.new(shape: Integer, location_name: "statementIndex"))
|
898
|
+
ReasonSummary.add_member(:statement_id, Shapes::ShapeRef.new(shape: String, location_name: "statementId"))
|
899
|
+
ReasonSummary.struct_class = Types::ReasonSummary
|
900
|
+
|
901
|
+
ReasonSummaryList.member = Shapes::ShapeRef.new(shape: ReasonSummary)
|
902
|
+
|
752
903
|
RegionList.member = Shapes::ShapeRef.new(shape: String)
|
753
904
|
|
754
905
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -776,6 +927,9 @@ module Aws::AccessAnalyzer
|
|
776
927
|
S3BucketConfiguration.add_member(:access_points, Shapes::ShapeRef.new(shape: S3AccessPointConfigurationsMap, location_name: "accessPoints"))
|
777
928
|
S3BucketConfiguration.struct_class = Types::S3BucketConfiguration
|
778
929
|
|
930
|
+
S3ExpressDirectoryBucketConfiguration.add_member(:bucket_policy, Shapes::ShapeRef.new(shape: S3ExpressDirectoryBucketPolicy, location_name: "bucketPolicy"))
|
931
|
+
S3ExpressDirectoryBucketConfiguration.struct_class = Types::S3ExpressDirectoryBucketConfiguration
|
932
|
+
|
779
933
|
S3PublicAccessBlockConfiguration.add_member(:ignore_public_acls, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "ignorePublicAcls"))
|
780
934
|
S3PublicAccessBlockConfiguration.add_member(:restrict_public_buckets, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "restrictPublicBuckets"))
|
781
935
|
S3PublicAccessBlockConfiguration.struct_class = Types::S3PublicAccessBlockConfiguration
|
@@ -854,12 +1008,39 @@ module Aws::AccessAnalyzer
|
|
854
1008
|
|
855
1009
|
TrailPropertiesList.member = Shapes::ShapeRef.new(shape: TrailProperties)
|
856
1010
|
|
1011
|
+
UnprocessableEntityException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
1012
|
+
UnprocessableEntityException.struct_class = Types::UnprocessableEntityException
|
1013
|
+
|
857
1014
|
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
858
1015
|
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
859
1016
|
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
860
1017
|
|
861
1018
|
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
862
1019
|
|
1020
|
+
UnusedAccessConfiguration.add_member(:unused_access_age, Shapes::ShapeRef.new(shape: Integer, location_name: "unusedAccessAge"))
|
1021
|
+
UnusedAccessConfiguration.struct_class = Types::UnusedAccessConfiguration
|
1022
|
+
|
1023
|
+
UnusedAction.add_member(:action, Shapes::ShapeRef.new(shape: String, required: true, location_name: "action"))
|
1024
|
+
UnusedAction.add_member(:last_accessed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastAccessed"))
|
1025
|
+
UnusedAction.struct_class = Types::UnusedAction
|
1026
|
+
|
1027
|
+
UnusedActionList.member = Shapes::ShapeRef.new(shape: UnusedAction)
|
1028
|
+
|
1029
|
+
UnusedIamRoleDetails.add_member(:last_accessed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastAccessed"))
|
1030
|
+
UnusedIamRoleDetails.struct_class = Types::UnusedIamRoleDetails
|
1031
|
+
|
1032
|
+
UnusedIamUserAccessKeyDetails.add_member(:access_key_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "accessKeyId"))
|
1033
|
+
UnusedIamUserAccessKeyDetails.add_member(:last_accessed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastAccessed"))
|
1034
|
+
UnusedIamUserAccessKeyDetails.struct_class = Types::UnusedIamUserAccessKeyDetails
|
1035
|
+
|
1036
|
+
UnusedIamUserPasswordDetails.add_member(:last_accessed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastAccessed"))
|
1037
|
+
UnusedIamUserPasswordDetails.struct_class = Types::UnusedIamUserPasswordDetails
|
1038
|
+
|
1039
|
+
UnusedPermissionDetails.add_member(:actions, Shapes::ShapeRef.new(shape: UnusedActionList, location_name: "actions"))
|
1040
|
+
UnusedPermissionDetails.add_member(:service_namespace, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceNamespace"))
|
1041
|
+
UnusedPermissionDetails.add_member(:last_accessed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastAccessed"))
|
1042
|
+
UnusedPermissionDetails.struct_class = Types::UnusedPermissionDetails
|
1043
|
+
|
863
1044
|
UpdateArchiveRuleRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
864
1045
|
UpdateArchiveRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "ruleName"))
|
865
1046
|
UpdateArchiveRuleRequest.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, required: true, location_name: "filter"))
|
@@ -953,6 +1134,34 @@ module Aws::AccessAnalyzer
|
|
953
1134
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
954
1135
|
end)
|
955
1136
|
|
1137
|
+
api.add_operation(:check_access_not_granted, Seahorse::Model::Operation.new.tap do |o|
|
1138
|
+
o.name = "CheckAccessNotGranted"
|
1139
|
+
o.http_method = "POST"
|
1140
|
+
o.http_request_uri = "/policy/check-access-not-granted"
|
1141
|
+
o.input = Shapes::ShapeRef.new(shape: CheckAccessNotGrantedRequest)
|
1142
|
+
o.output = Shapes::ShapeRef.new(shape: CheckAccessNotGrantedResponse)
|
1143
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1144
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1145
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1146
|
+
o.errors << Shapes::ShapeRef.new(shape: UnprocessableEntityException)
|
1147
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1148
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1149
|
+
end)
|
1150
|
+
|
1151
|
+
api.add_operation(:check_no_new_access, Seahorse::Model::Operation.new.tap do |o|
|
1152
|
+
o.name = "CheckNoNewAccess"
|
1153
|
+
o.http_method = "POST"
|
1154
|
+
o.http_request_uri = "/policy/check-no-new-access"
|
1155
|
+
o.input = Shapes::ShapeRef.new(shape: CheckNoNewAccessRequest)
|
1156
|
+
o.output = Shapes::ShapeRef.new(shape: CheckNoNewAccessResponse)
|
1157
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1158
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1159
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1160
|
+
o.errors << Shapes::ShapeRef.new(shape: UnprocessableEntityException)
|
1161
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1162
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1163
|
+
end)
|
1164
|
+
|
956
1165
|
api.add_operation(:create_access_preview, Seahorse::Model::Operation.new.tap do |o|
|
957
1166
|
o.name = "CreateAccessPreview"
|
958
1167
|
o.http_method = "PUT"
|
@@ -1088,6 +1297,25 @@ module Aws::AccessAnalyzer
|
|
1088
1297
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1089
1298
|
end)
|
1090
1299
|
|
1300
|
+
api.add_operation(:get_finding_v2, Seahorse::Model::Operation.new.tap do |o|
|
1301
|
+
o.name = "GetFindingV2"
|
1302
|
+
o.http_method = "GET"
|
1303
|
+
o.http_request_uri = "/findingv2/{id}"
|
1304
|
+
o.input = Shapes::ShapeRef.new(shape: GetFindingV2Request)
|
1305
|
+
o.output = Shapes::ShapeRef.new(shape: GetFindingV2Response)
|
1306
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1307
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1308
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1309
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1310
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1311
|
+
o[:pager] = Aws::Pager.new(
|
1312
|
+
limit_key: "max_results",
|
1313
|
+
tokens: {
|
1314
|
+
"next_token" => "next_token"
|
1315
|
+
}
|
1316
|
+
)
|
1317
|
+
end)
|
1318
|
+
|
1091
1319
|
api.add_operation(:get_generated_policy, Seahorse::Model::Operation.new.tap do |o|
|
1092
1320
|
o.name = "GetGeneratedPolicy"
|
1093
1321
|
o.http_method = "GET"
|
@@ -1213,6 +1441,25 @@ module Aws::AccessAnalyzer
|
|
1213
1441
|
)
|
1214
1442
|
end)
|
1215
1443
|
|
1444
|
+
api.add_operation(:list_findings_v2, Seahorse::Model::Operation.new.tap do |o|
|
1445
|
+
o.name = "ListFindingsV2"
|
1446
|
+
o.http_method = "POST"
|
1447
|
+
o.http_request_uri = "/findingv2"
|
1448
|
+
o.input = Shapes::ShapeRef.new(shape: ListFindingsV2Request)
|
1449
|
+
o.output = Shapes::ShapeRef.new(shape: ListFindingsV2Response)
|
1450
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1451
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1452
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1453
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1454
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1455
|
+
o[:pager] = Aws::Pager.new(
|
1456
|
+
limit_key: "max_results",
|
1457
|
+
tokens: {
|
1458
|
+
"next_token" => "next_token"
|
1459
|
+
}
|
1460
|
+
)
|
1461
|
+
end)
|
1462
|
+
|
1216
1463
|
api.add_operation(:list_policy_generations, Seahorse::Model::Operation.new.tap do |o|
|
1217
1464
|
o.name = "ListPolicyGenerations"
|
1218
1465
|
o.http_method = "GET"
|
@@ -32,8 +32,8 @@ module Aws::AccessAnalyzer
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
37
37
|
return Aws::Endpoints::Endpoint.new(url: "https://access-analyzer.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
38
|
end
|
39
39
|
return Aws::Endpoints::Endpoint.new(url: "https://access-analyzer-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
@@ -40,6 +40,34 @@ module Aws::AccessAnalyzer
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
class CheckAccessNotGranted
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::AccessAnalyzer::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class CheckNoNewAccess
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::AccessAnalyzer::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
43
71
|
class CreateAccessPreview
|
44
72
|
def self.build(context)
|
45
73
|
unless context.config.regional_endpoint
|
@@ -180,6 +208,20 @@ module Aws::AccessAnalyzer
|
|
180
208
|
end
|
181
209
|
end
|
182
210
|
|
211
|
+
class GetFindingV2
|
212
|
+
def self.build(context)
|
213
|
+
unless context.config.regional_endpoint
|
214
|
+
endpoint = context.config.endpoint.to_s
|
215
|
+
end
|
216
|
+
Aws::AccessAnalyzer::EndpointParameters.new(
|
217
|
+
region: context.config.region,
|
218
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
219
|
+
use_fips: context.config.use_fips_endpoint,
|
220
|
+
endpoint: endpoint,
|
221
|
+
)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
183
225
|
class GetGeneratedPolicy
|
184
226
|
def self.build(context)
|
185
227
|
unless context.config.regional_endpoint
|
@@ -278,6 +320,20 @@ module Aws::AccessAnalyzer
|
|
278
320
|
end
|
279
321
|
end
|
280
322
|
|
323
|
+
class ListFindingsV2
|
324
|
+
def self.build(context)
|
325
|
+
unless context.config.regional_endpoint
|
326
|
+
endpoint = context.config.endpoint.to_s
|
327
|
+
end
|
328
|
+
Aws::AccessAnalyzer::EndpointParameters.new(
|
329
|
+
region: context.config.region,
|
330
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
331
|
+
use_fips: context.config.use_fips_endpoint,
|
332
|
+
endpoint: endpoint,
|
333
|
+
)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
281
337
|
class ListPolicyGenerations
|
282
338
|
def self.build(context)
|
283
339
|
unless context.config.regional_endpoint
|
@@ -30,9 +30,11 @@ module Aws::AccessAnalyzer
|
|
30
30
|
# * {AccessDeniedException}
|
31
31
|
# * {ConflictException}
|
32
32
|
# * {InternalServerException}
|
33
|
+
# * {InvalidParameterException}
|
33
34
|
# * {ResourceNotFoundException}
|
34
35
|
# * {ServiceQuotaExceededException}
|
35
36
|
# * {ThrottlingException}
|
37
|
+
# * {UnprocessableEntityException}
|
36
38
|
# * {ValidationException}
|
37
39
|
#
|
38
40
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
@@ -105,6 +107,21 @@ module Aws::AccessAnalyzer
|
|
105
107
|
end
|
106
108
|
end
|
107
109
|
|
110
|
+
class InvalidParameterException < ServiceError
|
111
|
+
|
112
|
+
# @param [Seahorse::Client::RequestContext] context
|
113
|
+
# @param [String] message
|
114
|
+
# @param [Aws::AccessAnalyzer::Types::InvalidParameterException] data
|
115
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
116
|
+
super(context, message, data)
|
117
|
+
end
|
118
|
+
|
119
|
+
# @return [String]
|
120
|
+
def message
|
121
|
+
@message || @data[:message]
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
108
125
|
class ResourceNotFoundException < ServiceError
|
109
126
|
|
110
127
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -183,6 +200,25 @@ module Aws::AccessAnalyzer
|
|
183
200
|
end
|
184
201
|
end
|
185
202
|
|
203
|
+
class UnprocessableEntityException < ServiceError
|
204
|
+
|
205
|
+
# @param [Seahorse::Client::RequestContext] context
|
206
|
+
# @param [String] message
|
207
|
+
# @param [Aws::AccessAnalyzer::Types::UnprocessableEntityException] data
|
208
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
209
|
+
super(context, message, data)
|
210
|
+
end
|
211
|
+
|
212
|
+
# @return [String]
|
213
|
+
def message
|
214
|
+
@message || @data[:message]
|
215
|
+
end
|
216
|
+
|
217
|
+
def retryable?
|
218
|
+
true
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
186
222
|
class ValidationException < ServiceError
|
187
223
|
|
188
224
|
# @param [Seahorse::Client::RequestContext] context
|