aws-sdk-macie 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,243 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Macie
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AWSAccountId = Shapes::StringShape.new(name: 'AWSAccountId')
15
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
16
+ AssociateMemberAccountRequest = Shapes::StructureShape.new(name: 'AssociateMemberAccountRequest')
17
+ AssociateS3ResourcesRequest = Shapes::StructureShape.new(name: 'AssociateS3ResourcesRequest')
18
+ AssociateS3ResourcesResult = Shapes::StructureShape.new(name: 'AssociateS3ResourcesResult')
19
+ BucketName = Shapes::StringShape.new(name: 'BucketName')
20
+ ClassificationType = Shapes::StructureShape.new(name: 'ClassificationType')
21
+ ClassificationTypeUpdate = Shapes::StructureShape.new(name: 'ClassificationTypeUpdate')
22
+ DisassociateMemberAccountRequest = Shapes::StructureShape.new(name: 'DisassociateMemberAccountRequest')
23
+ DisassociateS3ResourcesRequest = Shapes::StructureShape.new(name: 'DisassociateS3ResourcesRequest')
24
+ DisassociateS3ResourcesResult = Shapes::StructureShape.new(name: 'DisassociateS3ResourcesResult')
25
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
26
+ ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
27
+ FailedS3Resource = Shapes::StructureShape.new(name: 'FailedS3Resource')
28
+ FailedS3Resources = Shapes::ListShape.new(name: 'FailedS3Resources')
29
+ FieldName = Shapes::StringShape.new(name: 'FieldName')
30
+ InternalException = Shapes::StructureShape.new(name: 'InternalException')
31
+ InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
32
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
33
+ ListMemberAccountsRequest = Shapes::StructureShape.new(name: 'ListMemberAccountsRequest')
34
+ ListMemberAccountsResult = Shapes::StructureShape.new(name: 'ListMemberAccountsResult')
35
+ ListS3ResourcesRequest = Shapes::StructureShape.new(name: 'ListS3ResourcesRequest')
36
+ ListS3ResourcesResult = Shapes::StructureShape.new(name: 'ListS3ResourcesResult')
37
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
38
+ MemberAccount = Shapes::StructureShape.new(name: 'MemberAccount')
39
+ MemberAccounts = Shapes::ListShape.new(name: 'MemberAccounts')
40
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
41
+ Prefix = Shapes::StringShape.new(name: 'Prefix')
42
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
43
+ S3ContinuousClassificationType = Shapes::StringShape.new(name: 'S3ContinuousClassificationType')
44
+ S3OneTimeClassificationType = Shapes::StringShape.new(name: 'S3OneTimeClassificationType')
45
+ S3Resource = Shapes::StructureShape.new(name: 'S3Resource')
46
+ S3ResourceClassification = Shapes::StructureShape.new(name: 'S3ResourceClassification')
47
+ S3ResourceClassificationUpdate = Shapes::StructureShape.new(name: 'S3ResourceClassificationUpdate')
48
+ S3Resources = Shapes::ListShape.new(name: 'S3Resources')
49
+ S3ResourcesClassification = Shapes::ListShape.new(name: 'S3ResourcesClassification')
50
+ S3ResourcesClassificationUpdate = Shapes::ListShape.new(name: 'S3ResourcesClassificationUpdate')
51
+ UpdateS3ResourcesRequest = Shapes::StructureShape.new(name: 'UpdateS3ResourcesRequest')
52
+ UpdateS3ResourcesResult = Shapes::StructureShape.new(name: 'UpdateS3ResourcesResult')
53
+
54
+ AssociateMemberAccountRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "memberAccountId"))
55
+ AssociateMemberAccountRequest.struct_class = Types::AssociateMemberAccountRequest
56
+
57
+ AssociateS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
58
+ AssociateS3ResourcesRequest.add_member(:s3_resources, Shapes::ShapeRef.new(shape: S3ResourcesClassification, required: true, location_name: "s3Resources"))
59
+ AssociateS3ResourcesRequest.struct_class = Types::AssociateS3ResourcesRequest
60
+
61
+ AssociateS3ResourcesResult.add_member(:failed_s3_resources, Shapes::ShapeRef.new(shape: FailedS3Resources, location_name: "failedS3Resources"))
62
+ AssociateS3ResourcesResult.struct_class = Types::AssociateS3ResourcesResult
63
+
64
+ ClassificationType.add_member(:one_time, Shapes::ShapeRef.new(shape: S3OneTimeClassificationType, required: true, location_name: "oneTime"))
65
+ ClassificationType.add_member(:continuous, Shapes::ShapeRef.new(shape: S3ContinuousClassificationType, required: true, location_name: "continuous"))
66
+ ClassificationType.struct_class = Types::ClassificationType
67
+
68
+ ClassificationTypeUpdate.add_member(:one_time, Shapes::ShapeRef.new(shape: S3OneTimeClassificationType, location_name: "oneTime"))
69
+ ClassificationTypeUpdate.add_member(:continuous, Shapes::ShapeRef.new(shape: S3ContinuousClassificationType, location_name: "continuous"))
70
+ ClassificationTypeUpdate.struct_class = Types::ClassificationTypeUpdate
71
+
72
+ DisassociateMemberAccountRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "memberAccountId"))
73
+ DisassociateMemberAccountRequest.struct_class = Types::DisassociateMemberAccountRequest
74
+
75
+ DisassociateS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
76
+ DisassociateS3ResourcesRequest.add_member(:associated_s3_resources, Shapes::ShapeRef.new(shape: S3Resources, required: true, location_name: "associatedS3Resources"))
77
+ DisassociateS3ResourcesRequest.struct_class = Types::DisassociateS3ResourcesRequest
78
+
79
+ DisassociateS3ResourcesResult.add_member(:failed_s3_resources, Shapes::ShapeRef.new(shape: FailedS3Resources, location_name: "failedS3Resources"))
80
+ DisassociateS3ResourcesResult.struct_class = Types::DisassociateS3ResourcesResult
81
+
82
+ FailedS3Resource.add_member(:failed_item, Shapes::ShapeRef.new(shape: S3Resource, location_name: "failedItem"))
83
+ FailedS3Resource.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
84
+ FailedS3Resource.add_member(:error_message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "errorMessage"))
85
+ FailedS3Resource.struct_class = Types::FailedS3Resource
86
+
87
+ FailedS3Resources.member = Shapes::ShapeRef.new(shape: FailedS3Resource)
88
+
89
+ ListMemberAccountsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
90
+ ListMemberAccountsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
91
+ ListMemberAccountsRequest.struct_class = Types::ListMemberAccountsRequest
92
+
93
+ ListMemberAccountsResult.add_member(:member_accounts, Shapes::ShapeRef.new(shape: MemberAccounts, location_name: "memberAccounts"))
94
+ ListMemberAccountsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
95
+ ListMemberAccountsResult.struct_class = Types::ListMemberAccountsResult
96
+
97
+ ListS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
98
+ ListS3ResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
99
+ ListS3ResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
100
+ ListS3ResourcesRequest.struct_class = Types::ListS3ResourcesRequest
101
+
102
+ ListS3ResourcesResult.add_member(:s3_resources, Shapes::ShapeRef.new(shape: S3ResourcesClassification, location_name: "s3Resources"))
103
+ ListS3ResourcesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
104
+ ListS3ResourcesResult.struct_class = Types::ListS3ResourcesResult
105
+
106
+ MemberAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "accountId"))
107
+ MemberAccount.struct_class = Types::MemberAccount
108
+
109
+ MemberAccounts.member = Shapes::ShapeRef.new(shape: MemberAccount)
110
+
111
+ S3Resource.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
112
+ S3Resource.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
113
+ S3Resource.struct_class = Types::S3Resource
114
+
115
+ S3ResourceClassification.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
116
+ S3ResourceClassification.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
117
+ S3ResourceClassification.add_member(:classification_type, Shapes::ShapeRef.new(shape: ClassificationType, required: true, location_name: "classificationType"))
118
+ S3ResourceClassification.struct_class = Types::S3ResourceClassification
119
+
120
+ S3ResourceClassificationUpdate.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
121
+ S3ResourceClassificationUpdate.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
122
+ S3ResourceClassificationUpdate.add_member(:classification_type_update, Shapes::ShapeRef.new(shape: ClassificationTypeUpdate, required: true, location_name: "classificationTypeUpdate"))
123
+ S3ResourceClassificationUpdate.struct_class = Types::S3ResourceClassificationUpdate
124
+
125
+ S3Resources.member = Shapes::ShapeRef.new(shape: S3Resource)
126
+
127
+ S3ResourcesClassification.member = Shapes::ShapeRef.new(shape: S3ResourceClassification)
128
+
129
+ S3ResourcesClassificationUpdate.member = Shapes::ShapeRef.new(shape: S3ResourceClassificationUpdate)
130
+
131
+ UpdateS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
132
+ UpdateS3ResourcesRequest.add_member(:s3_resources_update, Shapes::ShapeRef.new(shape: S3ResourcesClassificationUpdate, required: true, location_name: "s3ResourcesUpdate"))
133
+ UpdateS3ResourcesRequest.struct_class = Types::UpdateS3ResourcesRequest
134
+
135
+ UpdateS3ResourcesResult.add_member(:failed_s3_resources, Shapes::ShapeRef.new(shape: FailedS3Resources, location_name: "failedS3Resources"))
136
+ UpdateS3ResourcesResult.struct_class = Types::UpdateS3ResourcesResult
137
+
138
+
139
+ # @api private
140
+ API = Seahorse::Model::Api.new.tap do |api|
141
+
142
+ api.version = "2017-12-19"
143
+
144
+ api.metadata = {
145
+ "endpointPrefix" => "macie",
146
+ "jsonVersion" => "1.1",
147
+ "protocol" => "json",
148
+ "serviceFullName" => "Amazon Macie",
149
+ "signatureVersion" => "v4",
150
+ "targetPrefix" => "MacieService",
151
+ }
152
+
153
+ api.add_operation(:associate_member_account, Seahorse::Model::Operation.new.tap do |o|
154
+ o.name = "AssociateMemberAccount"
155
+ o.http_method = "POST"
156
+ o.http_request_uri = "/"
157
+ o.input = Shapes::ShapeRef.new(shape: AssociateMemberAccountRequest)
158
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
159
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
160
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
161
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
162
+ end)
163
+
164
+ api.add_operation(:associate_s3_resources, Seahorse::Model::Operation.new.tap do |o|
165
+ o.name = "AssociateS3Resources"
166
+ o.http_method = "POST"
167
+ o.http_request_uri = "/"
168
+ o.input = Shapes::ShapeRef.new(shape: AssociateS3ResourcesRequest)
169
+ o.output = Shapes::ShapeRef.new(shape: AssociateS3ResourcesResult)
170
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
171
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
172
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
173
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
174
+ end)
175
+
176
+ api.add_operation(:disassociate_member_account, Seahorse::Model::Operation.new.tap do |o|
177
+ o.name = "DisassociateMemberAccount"
178
+ o.http_method = "POST"
179
+ o.http_request_uri = "/"
180
+ o.input = Shapes::ShapeRef.new(shape: DisassociateMemberAccountRequest)
181
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
182
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
183
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
184
+ end)
185
+
186
+ api.add_operation(:disassociate_s3_resources, Seahorse::Model::Operation.new.tap do |o|
187
+ o.name = "DisassociateS3Resources"
188
+ o.http_method = "POST"
189
+ o.http_request_uri = "/"
190
+ o.input = Shapes::ShapeRef.new(shape: DisassociateS3ResourcesRequest)
191
+ o.output = Shapes::ShapeRef.new(shape: DisassociateS3ResourcesResult)
192
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
193
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
194
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
195
+ end)
196
+
197
+ api.add_operation(:list_member_accounts, Seahorse::Model::Operation.new.tap do |o|
198
+ o.name = "ListMemberAccounts"
199
+ o.http_method = "POST"
200
+ o.http_request_uri = "/"
201
+ o.input = Shapes::ShapeRef.new(shape: ListMemberAccountsRequest)
202
+ o.output = Shapes::ShapeRef.new(shape: ListMemberAccountsResult)
203
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
204
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
205
+ o[:pager] = Aws::Pager.new(
206
+ limit_key: "max_results",
207
+ tokens: {
208
+ "next_token" => "next_token"
209
+ }
210
+ )
211
+ end)
212
+
213
+ api.add_operation(:list_s3_resources, Seahorse::Model::Operation.new.tap do |o|
214
+ o.name = "ListS3Resources"
215
+ o.http_method = "POST"
216
+ o.http_request_uri = "/"
217
+ o.input = Shapes::ShapeRef.new(shape: ListS3ResourcesRequest)
218
+ o.output = Shapes::ShapeRef.new(shape: ListS3ResourcesResult)
219
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
220
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
221
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
222
+ o[:pager] = Aws::Pager.new(
223
+ limit_key: "max_results",
224
+ tokens: {
225
+ "next_token" => "next_token"
226
+ }
227
+ )
228
+ end)
229
+
230
+ api.add_operation(:update_s3_resources, Seahorse::Model::Operation.new.tap do |o|
231
+ o.name = "UpdateS3Resources"
232
+ o.http_method = "POST"
233
+ o.http_request_uri = "/"
234
+ o.input = Shapes::ShapeRef.new(shape: UpdateS3ResourcesRequest)
235
+ o.output = Shapes::ShapeRef.new(shape: UpdateS3ResourcesResult)
236
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
237
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
238
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
239
+ end)
240
+ end
241
+
242
+ end
243
+ end
File without changes
@@ -0,0 +1,14 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Macie
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ end
14
+ end
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Macie
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,501 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Macie
9
+ module Types
10
+
11
+ # @note When making an API call, you may pass AssociateMemberAccountRequest
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # member_account_id: "AWSAccountId", # required
16
+ # }
17
+ #
18
+ # @!attribute [rw] member_account_id
19
+ # The ID of the AWS account that you want to associate with Amazon
20
+ # Macie as a member account.
21
+ # @return [String]
22
+ #
23
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateMemberAccountRequest AWS API Documentation
24
+ #
25
+ class AssociateMemberAccountRequest < Struct.new(
26
+ :member_account_id)
27
+ include Aws::Structure
28
+ end
29
+
30
+ # @note When making an API call, you may pass AssociateS3ResourcesRequest
31
+ # data as a hash:
32
+ #
33
+ # {
34
+ # member_account_id: "AWSAccountId",
35
+ # s3_resources: [ # required
36
+ # {
37
+ # bucket_name: "BucketName", # required
38
+ # prefix: "Prefix",
39
+ # classification_type: { # required
40
+ # one_time: "FULL", # required, accepts FULL, NONE
41
+ # continuous: "FULL", # required, accepts FULL
42
+ # },
43
+ # },
44
+ # ],
45
+ # }
46
+ #
47
+ # @!attribute [rw] member_account_id
48
+ # The ID of the Amazon Macie member account whose resources you want
49
+ # to associate with Macie.
50
+ # @return [String]
51
+ #
52
+ # @!attribute [rw] s3_resources
53
+ # The S3 resources that you want to associate with Amazon Macie for
54
+ # monitoring and data classification.
55
+ # @return [Array<Types::S3ResourceClassification>]
56
+ #
57
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateS3ResourcesRequest AWS API Documentation
58
+ #
59
+ class AssociateS3ResourcesRequest < Struct.new(
60
+ :member_account_id,
61
+ :s3_resources)
62
+ include Aws::Structure
63
+ end
64
+
65
+ # @!attribute [rw] failed_s3_resources
66
+ # S3 resources that couldn't be associated with Amazon Macie. An
67
+ # error code and an error message are provided for each failed item.
68
+ # @return [Array<Types::FailedS3Resource>]
69
+ #
70
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateS3ResourcesResult AWS API Documentation
71
+ #
72
+ class AssociateS3ResourcesResult < Struct.new(
73
+ :failed_s3_resources)
74
+ include Aws::Structure
75
+ end
76
+
77
+ # The classification type that Amazon Macie applies to the associated S3
78
+ # resources.
79
+ #
80
+ # @note When making an API call, you may pass ClassificationType
81
+ # data as a hash:
82
+ #
83
+ # {
84
+ # one_time: "FULL", # required, accepts FULL, NONE
85
+ # continuous: "FULL", # required, accepts FULL
86
+ # }
87
+ #
88
+ # @!attribute [rw] one_time
89
+ # A one-time classification of all of the existing objects in a
90
+ # specified S3 bucket.
91
+ # @return [String]
92
+ #
93
+ # @!attribute [rw] continuous
94
+ # A continuous classification of the objects that are added to a
95
+ # specified S3 bucket. Amazon Macie begins performing continuous
96
+ # classification after a bucket is successfully associated with Amazon
97
+ # Macie.
98
+ # @return [String]
99
+ #
100
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ClassificationType AWS API Documentation
101
+ #
102
+ class ClassificationType < Struct.new(
103
+ :one_time,
104
+ :continuous)
105
+ include Aws::Structure
106
+ end
107
+
108
+ # The classification type that Amazon Macie applies to the associated S3
109
+ # resources. At least one of the classification types (oneTime or
110
+ # continuous) must be specified.
111
+ #
112
+ # @note When making an API call, you may pass ClassificationTypeUpdate
113
+ # data as a hash:
114
+ #
115
+ # {
116
+ # one_time: "FULL", # accepts FULL, NONE
117
+ # continuous: "FULL", # accepts FULL
118
+ # }
119
+ #
120
+ # @!attribute [rw] one_time
121
+ # A one-time classification of all of the existing objects in a
122
+ # specified S3 bucket.
123
+ # @return [String]
124
+ #
125
+ # @!attribute [rw] continuous
126
+ # A continuous classification of the objects that are added to a
127
+ # specified S3 bucket. Amazon Macie begins performing continuous
128
+ # classification after a bucket is successfully associated with Amazon
129
+ # Macie.
130
+ # @return [String]
131
+ #
132
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ClassificationTypeUpdate AWS API Documentation
133
+ #
134
+ class ClassificationTypeUpdate < Struct.new(
135
+ :one_time,
136
+ :continuous)
137
+ include Aws::Structure
138
+ end
139
+
140
+ # @note When making an API call, you may pass DisassociateMemberAccountRequest
141
+ # data as a hash:
142
+ #
143
+ # {
144
+ # member_account_id: "AWSAccountId", # required
145
+ # }
146
+ #
147
+ # @!attribute [rw] member_account_id
148
+ # The ID of the member account that you want to remove from Amazon
149
+ # Macie.
150
+ # @return [String]
151
+ #
152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateMemberAccountRequest AWS API Documentation
153
+ #
154
+ class DisassociateMemberAccountRequest < Struct.new(
155
+ :member_account_id)
156
+ include Aws::Structure
157
+ end
158
+
159
+ # @note When making an API call, you may pass DisassociateS3ResourcesRequest
160
+ # data as a hash:
161
+ #
162
+ # {
163
+ # member_account_id: "AWSAccountId",
164
+ # associated_s3_resources: [ # required
165
+ # {
166
+ # bucket_name: "BucketName", # required
167
+ # prefix: "Prefix",
168
+ # },
169
+ # ],
170
+ # }
171
+ #
172
+ # @!attribute [rw] member_account_id
173
+ # The ID of the Amazon Macie member account whose resources you want
174
+ # to remove from being monitored by Amazon Macie.
175
+ # @return [String]
176
+ #
177
+ # @!attribute [rw] associated_s3_resources
178
+ # The S3 resources (buckets or prefixes) that you want to remove from
179
+ # being monitored and classified by Amazon Macie.
180
+ # @return [Array<Types::S3Resource>]
181
+ #
182
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateS3ResourcesRequest AWS API Documentation
183
+ #
184
+ class DisassociateS3ResourcesRequest < Struct.new(
185
+ :member_account_id,
186
+ :associated_s3_resources)
187
+ include Aws::Structure
188
+ end
189
+
190
+ # @!attribute [rw] failed_s3_resources
191
+ # S3 resources that couldn't be removed from being monitored and
192
+ # classified by Amazon Macie. An error code and an error message are
193
+ # provided for each failed item.
194
+ # @return [Array<Types::FailedS3Resource>]
195
+ #
196
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateS3ResourcesResult AWS API Documentation
197
+ #
198
+ class DisassociateS3ResourcesResult < Struct.new(
199
+ :failed_s3_resources)
200
+ include Aws::Structure
201
+ end
202
+
203
+ # Includes details about the failed S3 resources.
204
+ #
205
+ # @!attribute [rw] failed_item
206
+ # The failed S3 resources.
207
+ # @return [Types::S3Resource]
208
+ #
209
+ # @!attribute [rw] error_code
210
+ # The status code of a failed item.
211
+ # @return [String]
212
+ #
213
+ # @!attribute [rw] error_message
214
+ # The error message of a failed item.
215
+ # @return [String]
216
+ #
217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/FailedS3Resource AWS API Documentation
218
+ #
219
+ class FailedS3Resource < Struct.new(
220
+ :failed_item,
221
+ :error_code,
222
+ :error_message)
223
+ include Aws::Structure
224
+ end
225
+
226
+ # @note When making an API call, you may pass ListMemberAccountsRequest
227
+ # data as a hash:
228
+ #
229
+ # {
230
+ # next_token: "NextToken",
231
+ # max_results: 1,
232
+ # }
233
+ #
234
+ # @!attribute [rw] next_token
235
+ # Use this parameter when paginating results. Set the value of this
236
+ # parameter to null on your first call to the ListMemberAccounts
237
+ # action. Subsequent calls to the action fill nextToken in the request
238
+ # with the value of nextToken from the previous response to continue
239
+ # listing data.
240
+ # @return [String]
241
+ #
242
+ # @!attribute [rw] max_results
243
+ # Use this parameter to indicate the maximum number of items that you
244
+ # want in the response. The default value is 250.
245
+ # @return [Integer]
246
+ #
247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListMemberAccountsRequest AWS API Documentation
248
+ #
249
+ class ListMemberAccountsRequest < Struct.new(
250
+ :next_token,
251
+ :max_results)
252
+ include Aws::Structure
253
+ end
254
+
255
+ # @!attribute [rw] member_accounts
256
+ # A list of the Amazon Macie member accounts returned by the action.
257
+ # The current master account is also included in this list.
258
+ # @return [Array<Types::MemberAccount>]
259
+ #
260
+ # @!attribute [rw] next_token
261
+ # When a response is generated, if there is more data to be listed,
262
+ # this parameter is present in the response and contains the value to
263
+ # use for the nextToken parameter in a subsequent pagination request.
264
+ # If there is no more data to be listed, this parameter is set to
265
+ # null.
266
+ # @return [String]
267
+ #
268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListMemberAccountsResult AWS API Documentation
269
+ #
270
+ class ListMemberAccountsResult < Struct.new(
271
+ :member_accounts,
272
+ :next_token)
273
+ include Aws::Structure
274
+ end
275
+
276
+ # @note When making an API call, you may pass ListS3ResourcesRequest
277
+ # data as a hash:
278
+ #
279
+ # {
280
+ # member_account_id: "AWSAccountId",
281
+ # next_token: "NextToken",
282
+ # max_results: 1,
283
+ # }
284
+ #
285
+ # @!attribute [rw] member_account_id
286
+ # The Amazon Macie member account ID whose associated S3 resources you
287
+ # want to list.
288
+ # @return [String]
289
+ #
290
+ # @!attribute [rw] next_token
291
+ # Use this parameter when paginating results. Set its value to null on
292
+ # your first call to the ListS3Resources action. Subsequent calls to
293
+ # the action fill nextToken in the request with the value of nextToken
294
+ # from the previous response to continue listing data.
295
+ # @return [String]
296
+ #
297
+ # @!attribute [rw] max_results
298
+ # Use this parameter to indicate the maximum number of items that you
299
+ # want in the response. The default value is 250.
300
+ # @return [Integer]
301
+ #
302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListS3ResourcesRequest AWS API Documentation
303
+ #
304
+ class ListS3ResourcesRequest < Struct.new(
305
+ :member_account_id,
306
+ :next_token,
307
+ :max_results)
308
+ include Aws::Structure
309
+ end
310
+
311
+ # @!attribute [rw] s3_resources
312
+ # A list of the associated S3 resources returned by the action.
313
+ # @return [Array<Types::S3ResourceClassification>]
314
+ #
315
+ # @!attribute [rw] next_token
316
+ # When a response is generated, if there is more data to be listed,
317
+ # this parameter is present in the response and contains the value to
318
+ # use for the nextToken parameter in a subsequent pagination request.
319
+ # If there is no more data to be listed, this parameter is set to
320
+ # null.
321
+ # @return [String]
322
+ #
323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListS3ResourcesResult AWS API Documentation
324
+ #
325
+ class ListS3ResourcesResult < Struct.new(
326
+ :s3_resources,
327
+ :next_token)
328
+ include Aws::Structure
329
+ end
330
+
331
+ # Contains information about the Amazon Macie member account.
332
+ #
333
+ # @!attribute [rw] account_id
334
+ # The AWS account ID of the Amazon Macie member account.
335
+ # @return [String]
336
+ #
337
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/MemberAccount AWS API Documentation
338
+ #
339
+ class MemberAccount < Struct.new(
340
+ :account_id)
341
+ include Aws::Structure
342
+ end
343
+
344
+ # Contains information about the S3 resource. This data type is used as
345
+ # a request parameter in the DisassociateS3Resources action and can be
346
+ # used as a response parameter in the AssociateS3Resources and
347
+ # UpdateS3Resources actions.
348
+ #
349
+ # @note When making an API call, you may pass S3Resource
350
+ # data as a hash:
351
+ #
352
+ # {
353
+ # bucket_name: "BucketName", # required
354
+ # prefix: "Prefix",
355
+ # }
356
+ #
357
+ # @!attribute [rw] bucket_name
358
+ # The name of the S3 bucket.
359
+ # @return [String]
360
+ #
361
+ # @!attribute [rw] prefix
362
+ # The prefix of the S3 bucket.
363
+ # @return [String]
364
+ #
365
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/S3Resource AWS API Documentation
366
+ #
367
+ class S3Resource < Struct.new(
368
+ :bucket_name,
369
+ :prefix)
370
+ include Aws::Structure
371
+ end
372
+
373
+ # The S3 resources that you want to associate with Amazon Macie for
374
+ # monitoring and data classification. This data type is used as a
375
+ # request parameter in the AssociateS3Resources action and a response
376
+ # parameter in the ListS3Resources action.
377
+ #
378
+ # @note When making an API call, you may pass S3ResourceClassification
379
+ # data as a hash:
380
+ #
381
+ # {
382
+ # bucket_name: "BucketName", # required
383
+ # prefix: "Prefix",
384
+ # classification_type: { # required
385
+ # one_time: "FULL", # required, accepts FULL, NONE
386
+ # continuous: "FULL", # required, accepts FULL
387
+ # },
388
+ # }
389
+ #
390
+ # @!attribute [rw] bucket_name
391
+ # The name of the S3 bucket that you want to associate with Amazon
392
+ # Macie.
393
+ # @return [String]
394
+ #
395
+ # @!attribute [rw] prefix
396
+ # The prefix of the S3 bucket that you want to associate with Amazon
397
+ # Macie.
398
+ # @return [String]
399
+ #
400
+ # @!attribute [rw] classification_type
401
+ # The classification type that you want to specify for the resource
402
+ # associated with Amazon Macie.
403
+ # @return [Types::ClassificationType]
404
+ #
405
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/S3ResourceClassification AWS API Documentation
406
+ #
407
+ class S3ResourceClassification < Struct.new(
408
+ :bucket_name,
409
+ :prefix,
410
+ :classification_type)
411
+ include Aws::Structure
412
+ end
413
+
414
+ # The S3 resources whose classification types you want to update. This
415
+ # data type is used as a request parameter in the UpdateS3Resources
416
+ # action.
417
+ #
418
+ # @note When making an API call, you may pass S3ResourceClassificationUpdate
419
+ # data as a hash:
420
+ #
421
+ # {
422
+ # bucket_name: "BucketName", # required
423
+ # prefix: "Prefix",
424
+ # classification_type_update: { # required
425
+ # one_time: "FULL", # accepts FULL, NONE
426
+ # continuous: "FULL", # accepts FULL
427
+ # },
428
+ # }
429
+ #
430
+ # @!attribute [rw] bucket_name
431
+ # The name of the S3 bucket whose classification types you want to
432
+ # update.
433
+ # @return [String]
434
+ #
435
+ # @!attribute [rw] prefix
436
+ # The prefix of the S3 bucket whose classification types you want to
437
+ # update.
438
+ # @return [String]
439
+ #
440
+ # @!attribute [rw] classification_type_update
441
+ # The classification type that you want to update for the resource
442
+ # associated with Amazon Macie.
443
+ # @return [Types::ClassificationTypeUpdate]
444
+ #
445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/S3ResourceClassificationUpdate AWS API Documentation
446
+ #
447
+ class S3ResourceClassificationUpdate < Struct.new(
448
+ :bucket_name,
449
+ :prefix,
450
+ :classification_type_update)
451
+ include Aws::Structure
452
+ end
453
+
454
+ # @note When making an API call, you may pass UpdateS3ResourcesRequest
455
+ # data as a hash:
456
+ #
457
+ # {
458
+ # member_account_id: "AWSAccountId",
459
+ # s3_resources_update: [ # required
460
+ # {
461
+ # bucket_name: "BucketName", # required
462
+ # prefix: "Prefix",
463
+ # classification_type_update: { # required
464
+ # one_time: "FULL", # accepts FULL, NONE
465
+ # continuous: "FULL", # accepts FULL
466
+ # },
467
+ # },
468
+ # ],
469
+ # }
470
+ #
471
+ # @!attribute [rw] member_account_id
472
+ # The AWS ID of the Amazon Macie member account whose S3 resources'
473
+ # classification types you want to update.
474
+ # @return [String]
475
+ #
476
+ # @!attribute [rw] s3_resources_update
477
+ # The S3 resources whose classification types you want to update.
478
+ # @return [Array<Types::S3ResourceClassificationUpdate>]
479
+ #
480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/UpdateS3ResourcesRequest AWS API Documentation
481
+ #
482
+ class UpdateS3ResourcesRequest < Struct.new(
483
+ :member_account_id,
484
+ :s3_resources_update)
485
+ include Aws::Structure
486
+ end
487
+
488
+ # @!attribute [rw] failed_s3_resources
489
+ # The S3 resources whose classification types can't be updated. An
490
+ # error code and an error message are provided for each failed item.
491
+ # @return [Array<Types::FailedS3Resource>]
492
+ #
493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/UpdateS3ResourcesResult AWS API Documentation
494
+ #
495
+ class UpdateS3ResourcesResult < Struct.new(
496
+ :failed_s3_resources)
497
+ include Aws::Structure
498
+ end
499
+
500
+ end
501
+ end