aws-sdk-accessanalyzer 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bbf86c22539bb14527eb08f410061805aed66f6
4
- data.tar.gz: 64771f42dd95d97334d8f597a459eccaa63c6158
3
+ metadata.gz: f80476f46b987f9ebb707d450426aa4743e18738
4
+ data.tar.gz: efe238c990e8ee40e1bd0b284071f0f7f0ac7acf
5
5
  SHA512:
6
- metadata.gz: c0de7ecc35e07974fffed1da9876bc0057073c91ff30910f530b97c6b2bd2db7cf3e3708e3d7b5c4f3d2c7c37c546888ad0ff05889c88a3ac09f9aff9f173d77
7
- data.tar.gz: 07ddc27aaac1eb3f4fe9e4ac84af067873feca5bac0ac7cdb0c96a59e2bbb6d85908ac69127f08ac709feb303929ad9a17f79a3c4a351f455ef22f9776684f4b
6
+ metadata.gz: ce945dab816ed118702e08ddc828a4c26b70691414742c6688a04e5fdeaa80ce97bb559195789c6700d33ae8eb6b5223519c1d8616c6d1ccf7b2af43966ead43
7
+ data.tar.gz: 170d451ba51359e02ba8c94a87239e38bcd221bc3f841ebf9a8c3c04738e055f10b1ecc65c6f332f6514afc86970e4c95296d583a82597ee4d0553db02cc57c4
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-accessanalyzer/customizations'
45
45
  # @service
46
46
  module Aws::AccessAnalyzer
47
47
 
48
- GEM_VERSION = '1.3.0'
48
+ GEM_VERSION = '1.4.0'
49
49
 
50
50
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:accessanalyzer)
32
32
  module Aws::AccessAnalyzer
33
33
  # An API client for AccessAnalyzer. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::AccessAnalyzer::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::AccessAnalyzer::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -229,15 +229,19 @@ module Aws::AccessAnalyzer
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -265,8 +269,7 @@ module Aws::AccessAnalyzer
265
269
  #
266
270
  # @option options [Integer] :http_read_timeout (60) The default
267
271
  # number of seconds to wait for response data. This value can
268
- # safely be set
269
- # per-request on the session yielded by {#session_for}.
272
+ # safely be set per-request on the session.
270
273
  #
271
274
  # @option options [Float] :http_idle_timeout (5) The number of
272
275
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +281,7 @@ module Aws::AccessAnalyzer
278
281
  # request body. This option has no effect unless the request has
279
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
283
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
282
285
  #
283
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
287
  # HTTP debug output will be sent to the `:logger`.
@@ -353,7 +356,7 @@ module Aws::AccessAnalyzer
353
356
  # tags: {
354
357
  # "String" => "String",
355
358
  # },
356
- # type: "ACCOUNT", # required, accepts ACCOUNT
359
+ # type: "ACCOUNT", # required, accepts ACCOUNT, ORGANIZATION
357
360
  # })
358
361
  #
359
362
  # @example Response structure
@@ -509,6 +512,7 @@ module Aws::AccessAnalyzer
509
512
  # resp.resource.error #=> String
510
513
  # resp.resource.is_public #=> Boolean
511
514
  # resp.resource.resource_arn #=> String
515
+ # resp.resource.resource_owner_account #=> String
512
516
  # resp.resource.resource_type #=> String, one of "AWS::IAM::Role", "AWS::KMS::Key", "AWS::Lambda::Function", "AWS::Lambda::LayerVersion", "AWS::S3::Bucket", "AWS::SQS::Queue"
513
517
  # resp.resource.shared_via #=> Array
514
518
  # resp.resource.shared_via[0] #=> String
@@ -546,9 +550,11 @@ module Aws::AccessAnalyzer
546
550
  # resp.analyzer.last_resource_analyzed #=> String
547
551
  # resp.analyzer.last_resource_analyzed_at #=> Time
548
552
  # resp.analyzer.name #=> String
553
+ # resp.analyzer.status #=> String, one of "ACTIVE", "CREATING", "DISABLED", "FAILED"
554
+ # resp.analyzer.status_reason.code #=> String, one of "AWS_SERVICE_ACCESS_DISABLED", "DELEGATED_ADMINISTRATOR_DEREGISTERED", "ORGANIZATION_DELETED", "SERVICE_LINKED_ROLE_CREATION_FAILED"
549
555
  # resp.analyzer.tags #=> Hash
550
556
  # resp.analyzer.tags["String"] #=> String
551
- # resp.analyzer.type #=> String, one of "ACCOUNT"
557
+ # resp.analyzer.type #=> String, one of "ACCOUNT", "ORGANIZATION"
552
558
  #
553
559
  # @see http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer AWS API Documentation
554
560
  #
@@ -634,6 +640,7 @@ module Aws::AccessAnalyzer
634
640
  # resp.finding.principal #=> Hash
635
641
  # resp.finding.principal["String"] #=> String
636
642
  # resp.finding.resource #=> String
643
+ # resp.finding.resource_owner_account #=> String
637
644
  # resp.finding.resource_type #=> String, one of "AWS::IAM::Role", "AWS::KMS::Key", "AWS::Lambda::Function", "AWS::Lambda::LayerVersion", "AWS::S3::Bucket", "AWS::SQS::Queue"
638
645
  # resp.finding.status #=> String, one of "ACTIVE", "ARCHIVED", "RESOLVED"
639
646
  # resp.finding.updated_at #=> Time
@@ -667,6 +674,8 @@ module Aws::AccessAnalyzer
667
674
  # * {Types::ListAnalyzedResourcesResponse#analyzed_resources #analyzed_resources} => Array<Types::AnalyzedResourceSummary>
668
675
  # * {Types::ListAnalyzedResourcesResponse#next_token #next_token} => String
669
676
  #
677
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
678
+ #
670
679
  # @example Request syntax with placeholder values
671
680
  #
672
681
  # resp = client.list_analyzed_resources({
@@ -680,6 +689,7 @@ module Aws::AccessAnalyzer
680
689
  #
681
690
  # resp.analyzed_resources #=> Array
682
691
  # resp.analyzed_resources[0].resource_arn #=> String
692
+ # resp.analyzed_resources[0].resource_owner_account #=> String
683
693
  # resp.analyzed_resources[0].resource_type #=> String, one of "AWS::IAM::Role", "AWS::KMS::Key", "AWS::Lambda::Function", "AWS::Lambda::LayerVersion", "AWS::S3::Bucket", "AWS::SQS::Queue"
684
694
  # resp.next_token #=> String
685
695
  #
@@ -708,12 +718,14 @@ module Aws::AccessAnalyzer
708
718
  # * {Types::ListAnalyzersResponse#analyzers #analyzers} => Array<Types::AnalyzerSummary>
709
719
  # * {Types::ListAnalyzersResponse#next_token #next_token} => String
710
720
  #
721
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
722
+ #
711
723
  # @example Request syntax with placeholder values
712
724
  #
713
725
  # resp = client.list_analyzers({
714
726
  # max_results: 1,
715
727
  # next_token: "Token",
716
- # type: "ACCOUNT", # accepts ACCOUNT
728
+ # type: "ACCOUNT", # accepts ACCOUNT, ORGANIZATION
717
729
  # })
718
730
  #
719
731
  # @example Response structure
@@ -724,9 +736,11 @@ module Aws::AccessAnalyzer
724
736
  # resp.analyzers[0].last_resource_analyzed #=> String
725
737
  # resp.analyzers[0].last_resource_analyzed_at #=> Time
726
738
  # resp.analyzers[0].name #=> String
739
+ # resp.analyzers[0].status #=> String, one of "ACTIVE", "CREATING", "DISABLED", "FAILED"
740
+ # resp.analyzers[0].status_reason.code #=> String, one of "AWS_SERVICE_ACCESS_DISABLED", "DELEGATED_ADMINISTRATOR_DEREGISTERED", "ORGANIZATION_DELETED", "SERVICE_LINKED_ROLE_CREATION_FAILED"
727
741
  # resp.analyzers[0].tags #=> Hash
728
742
  # resp.analyzers[0].tags["String"] #=> String
729
- # resp.analyzers[0].type #=> String, one of "ACCOUNT"
743
+ # resp.analyzers[0].type #=> String, one of "ACCOUNT", "ORGANIZATION"
730
744
  # resp.next_token #=> String
731
745
  #
732
746
  # @see http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers AWS API Documentation
@@ -754,6 +768,8 @@ module Aws::AccessAnalyzer
754
768
  # * {Types::ListArchiveRulesResponse#archive_rules #archive_rules} => Array<Types::ArchiveRuleSummary>
755
769
  # * {Types::ListArchiveRulesResponse#next_token #next_token} => String
756
770
  #
771
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
772
+ #
757
773
  # @example Request syntax with placeholder values
758
774
  #
759
775
  # resp = client.list_archive_rules({
@@ -809,6 +825,8 @@ module Aws::AccessAnalyzer
809
825
  # * {Types::ListFindingsResponse#findings #findings} => Array<Types::FindingSummary>
810
826
  # * {Types::ListFindingsResponse#next_token #next_token} => String
811
827
  #
828
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
829
+ #
812
830
  # @example Request syntax with placeholder values
813
831
  #
814
832
  # resp = client.list_findings({
@@ -844,6 +862,7 @@ module Aws::AccessAnalyzer
844
862
  # resp.findings[0].principal #=> Hash
845
863
  # resp.findings[0].principal["String"] #=> String
846
864
  # resp.findings[0].resource #=> String
865
+ # resp.findings[0].resource_owner_account #=> String
847
866
  # resp.findings[0].resource_type #=> String, one of "AWS::IAM::Role", "AWS::KMS::Key", "AWS::Lambda::Function", "AWS::Lambda::LayerVersion", "AWS::S3::Bucket", "AWS::SQS::Queue"
848
867
  # resp.findings[0].status #=> String, one of "ACTIVE", "ARCHIVED", "RESOLVED"
849
868
  # resp.findings[0].updated_at #=> Time
@@ -1070,7 +1089,7 @@ module Aws::AccessAnalyzer
1070
1089
  params: params,
1071
1090
  config: config)
1072
1091
  context[:gem_name] = 'aws-sdk-accessanalyzer'
1073
- context[:gem_version] = '1.3.0'
1092
+ context[:gem_version] = '1.4.0'
1074
1093
  Seahorse::Client::Request.new(handlers, context)
1075
1094
  end
1076
1095
 
@@ -17,6 +17,7 @@ module Aws::AccessAnalyzer
17
17
  AnalyzedResourceSummary = Shapes::StructureShape.new(name: 'AnalyzedResourceSummary')
18
18
  AnalyzedResourcesList = Shapes::ListShape.new(name: 'AnalyzedResourcesList')
19
19
  AnalyzerArn = Shapes::StringShape.new(name: 'AnalyzerArn')
20
+ AnalyzerStatus = Shapes::StringShape.new(name: 'AnalyzerStatus')
20
21
  AnalyzerSummary = Shapes::StructureShape.new(name: 'AnalyzerSummary')
21
22
  AnalyzersList = Shapes::ListShape.new(name: 'AnalyzersList')
22
23
  ArchiveRuleSummary = Shapes::StructureShape.new(name: 'ArchiveRuleSummary')
@@ -63,6 +64,7 @@ module Aws::AccessAnalyzer
63
64
  Name = Shapes::StringShape.new(name: 'Name')
64
65
  OrderBy = Shapes::StringShape.new(name: 'OrderBy')
65
66
  PrincipalMap = Shapes::MapShape.new(name: 'PrincipalMap')
67
+ ReasonCode = Shapes::StringShape.new(name: 'ReasonCode')
66
68
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
67
69
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
68
70
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
@@ -70,6 +72,7 @@ module Aws::AccessAnalyzer
70
72
  SharedViaList = Shapes::ListShape.new(name: 'SharedViaList')
71
73
  SortCriteria = Shapes::StructureShape.new(name: 'SortCriteria')
72
74
  StartResourceScanRequest = Shapes::StructureShape.new(name: 'StartResourceScanRequest')
75
+ StatusReason = Shapes::StructureShape.new(name: 'StatusReason')
73
76
  String = Shapes::StringShape.new(name: 'String')
74
77
  TagKeys = Shapes::ListShape.new(name: 'TagKeys')
75
78
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
@@ -100,6 +103,7 @@ module Aws::AccessAnalyzer
100
103
  AnalyzedResource.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
101
104
  AnalyzedResource.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "isPublic"))
102
105
  AnalyzedResource.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
106
+ AnalyzedResource.add_member(:resource_owner_account, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceOwnerAccount"))
103
107
  AnalyzedResource.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
104
108
  AnalyzedResource.add_member(:shared_via, Shapes::ShapeRef.new(shape: SharedViaList, location_name: "sharedVia"))
105
109
  AnalyzedResource.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, location_name: "status"))
@@ -107,6 +111,7 @@ module Aws::AccessAnalyzer
107
111
  AnalyzedResource.struct_class = Types::AnalyzedResource
108
112
 
109
113
  AnalyzedResourceSummary.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
114
+ AnalyzedResourceSummary.add_member(:resource_owner_account, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceOwnerAccount"))
110
115
  AnalyzedResourceSummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
111
116
  AnalyzedResourceSummary.struct_class = Types::AnalyzedResourceSummary
112
117
 
@@ -117,6 +122,8 @@ module Aws::AccessAnalyzer
117
122
  AnalyzerSummary.add_member(:last_resource_analyzed, Shapes::ShapeRef.new(shape: String, location_name: "lastResourceAnalyzed"))
118
123
  AnalyzerSummary.add_member(:last_resource_analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastResourceAnalyzedAt"))
119
124
  AnalyzerSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
125
+ AnalyzerSummary.add_member(:status, Shapes::ShapeRef.new(shape: AnalyzerStatus, required: true, location_name: "status"))
126
+ AnalyzerSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
120
127
  AnalyzerSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
121
128
  AnalyzerSummary.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location_name: "type"))
122
129
  AnalyzerSummary.struct_class = Types::AnalyzerSummary
@@ -182,6 +189,7 @@ module Aws::AccessAnalyzer
182
189
  Finding.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPublic"))
183
190
  Finding.add_member(:principal, Shapes::ShapeRef.new(shape: PrincipalMap, location_name: "principal"))
184
191
  Finding.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
192
+ Finding.add_member(:resource_owner_account, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceOwnerAccount"))
185
193
  Finding.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
186
194
  Finding.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, required: true, location_name: "status"))
187
195
  Finding.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
@@ -198,6 +206,7 @@ module Aws::AccessAnalyzer
198
206
  FindingSummary.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPublic"))
199
207
  FindingSummary.add_member(:principal, Shapes::ShapeRef.new(shape: PrincipalMap, location_name: "principal"))
200
208
  FindingSummary.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
209
+ FindingSummary.add_member(:resource_owner_account, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceOwnerAccount"))
201
210
  FindingSummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
202
211
  FindingSummary.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, required: true, location_name: "status"))
203
212
  FindingSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
@@ -310,6 +319,9 @@ module Aws::AccessAnalyzer
310
319
  StartResourceScanRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
311
320
  StartResourceScanRequest.struct_class = Types::StartResourceScanRequest
312
321
 
322
+ StatusReason.add_member(:code, Shapes::ShapeRef.new(shape: ReasonCode, required: true, location_name: "code"))
323
+ StatusReason.struct_class = Types::StatusReason
324
+
313
325
  TagKeys.member = Shapes::ShapeRef.new(shape: String)
314
326
 
315
327
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::AccessAnalyzer
9
- # This class provides a resource oriented interface for AccessAnalyzer.
10
- # To create a resource object:
11
- # resource = Aws::AccessAnalyzer::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::AccessAnalyzer::Client.new(region: 'us-west-2')
15
- # resource = Aws::AccessAnalyzer::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -48,6 +48,10 @@ module Aws::AccessAnalyzer
48
48
  # The ARN of the resource that was analyzed.
49
49
  # @return [String]
50
50
  #
51
+ # @!attribute [rw] resource_owner_account
52
+ # The AWS account ID that owns the resource.
53
+ # @return [String]
54
+ #
51
55
  # @!attribute [rw] resource_type
52
56
  # The type of the resource that was analyzed.
53
57
  # @return [String]
@@ -74,6 +78,7 @@ module Aws::AccessAnalyzer
74
78
  :error,
75
79
  :is_public,
76
80
  :resource_arn,
81
+ :resource_owner_account,
77
82
  :resource_type,
78
83
  :shared_via,
79
84
  :status,
@@ -87,6 +92,10 @@ module Aws::AccessAnalyzer
87
92
  # The ARN of the analyzed resource.
88
93
  # @return [String]
89
94
  #
95
+ # @!attribute [rw] resource_owner_account
96
+ # The AWS account ID that owns the resource.
97
+ # @return [String]
98
+ #
90
99
  # @!attribute [rw] resource_type
91
100
  # The type of resource that was analyzed.
92
101
  # @return [String]
@@ -95,6 +104,7 @@ module Aws::AccessAnalyzer
95
104
  #
96
105
  class AnalyzedResourceSummary < Struct.new(
97
106
  :resource_arn,
107
+ :resource_owner_account,
98
108
  :resource_type)
99
109
  include Aws::Structure
100
110
  end
@@ -121,6 +131,25 @@ module Aws::AccessAnalyzer
121
131
  # The name of the analyzer.
122
132
  # @return [String]
123
133
  #
134
+ # @!attribute [rw] status
135
+ # The status of the analyzer. An `Active` analyzer successfully
136
+ # monitors supported resources and generates new findings. The
137
+ # analyzer is `Disabled` when a user action, such as removing trusted
138
+ # access for IAM Access Analyzer from AWS Organizations, causes the
139
+ # analyzer to stop generating new findings. The status is `Creating`
140
+ # when the analyzer creation is in progress and `Failed` when the
141
+ # analyzer creation has failed.
142
+ # @return [String]
143
+ #
144
+ # @!attribute [rw] status_reason
145
+ # The `statusReason` provides more details about the current status of
146
+ # the analyzer. For example, if the creation for the analyzer fails, a
147
+ # `Failed` status is displayed. For an analyzer with organization as
148
+ # the type, this failure can be due to an issue with creating the
149
+ # service-linked roles required in the member accounts of the AWS
150
+ # organization.
151
+ # @return [Types::StatusReason]
152
+ #
124
153
  # @!attribute [rw] tags
125
154
  # The tags added to the analyzer.
126
155
  # @return [Hash<String,String>]
@@ -138,6 +167,8 @@ module Aws::AccessAnalyzer
138
167
  :last_resource_analyzed,
139
168
  :last_resource_analyzed_at,
140
169
  :name,
170
+ :status,
171
+ :status_reason,
141
172
  :tags,
142
173
  :type)
143
174
  include Aws::Structure
@@ -217,7 +248,7 @@ module Aws::AccessAnalyzer
217
248
  # tags: {
218
249
  # "String" => "String",
219
250
  # },
220
- # type: "ACCOUNT", # required, accepts ACCOUNT
251
+ # type: "ACCOUNT", # required, accepts ACCOUNT, ORGANIZATION
221
252
  # }
222
253
  #
223
254
  # @!attribute [rw] analyzer_name
@@ -467,6 +498,10 @@ module Aws::AccessAnalyzer
467
498
  # The resource that an external principal has access to.
468
499
  # @return [String]
469
500
  #
501
+ # @!attribute [rw] resource_owner_account
502
+ # The AWS account ID that owns the resource.
503
+ # @return [String]
504
+ #
470
505
  # @!attribute [rw] resource_type
471
506
  # The type of the resource reported in the finding.
472
507
  # @return [String]
@@ -491,6 +526,7 @@ module Aws::AccessAnalyzer
491
526
  :is_public,
492
527
  :principal,
493
528
  :resource,
529
+ :resource_owner_account,
494
530
  :resource_type,
495
531
  :status,
496
532
  :updated_at)
@@ -540,6 +576,10 @@ module Aws::AccessAnalyzer
540
576
  # The resource that the external principal has access to.
541
577
  # @return [String]
542
578
  #
579
+ # @!attribute [rw] resource_owner_account
580
+ # The AWS account ID that owns the resource.
581
+ # @return [String]
582
+ #
543
583
  # @!attribute [rw] resource_type
544
584
  # The type of the resource that the external principal has access to.
545
585
  # @return [String]
@@ -564,6 +604,7 @@ module Aws::AccessAnalyzer
564
604
  :is_public,
565
605
  :principal,
566
606
  :resource,
607
+ :resource_owner_account,
567
608
  :resource_type,
568
609
  :status,
569
610
  :updated_at)
@@ -838,7 +879,7 @@ module Aws::AccessAnalyzer
838
879
  # {
839
880
  # max_results: 1,
840
881
  # next_token: "Token",
841
- # type: "ACCOUNT", # accepts ACCOUNT
882
+ # type: "ACCOUNT", # accepts ACCOUNT, ORGANIZATION
842
883
  # }
843
884
  #
844
885
  # @!attribute [rw] max_results
@@ -1133,6 +1174,23 @@ module Aws::AccessAnalyzer
1133
1174
  include Aws::Structure
1134
1175
  end
1135
1176
 
1177
+ # Provides more details about the current status of the analyzer. For
1178
+ # example, if the creation for the analyzer fails, a `Failed` status is
1179
+ # displayed. For an analyzer with organization as the type, this failure
1180
+ # can be due to an issue with creating the service-linked roles required
1181
+ # in the member accounts of the AWS organization.
1182
+ #
1183
+ # @!attribute [rw] code
1184
+ # The reason code for the current status of the analyzer.
1185
+ # @return [String]
1186
+ #
1187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StatusReason AWS API Documentation
1188
+ #
1189
+ class StatusReason < Struct.new(
1190
+ :code)
1191
+ include Aws::Structure
1192
+ end
1193
+
1136
1194
  # Adds a tag to the specified resource.
1137
1195
  #
1138
1196
  # @note When making an API call, you may pass TagResourceRequest
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-accessanalyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core