Class: Aws::Macie::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Macie::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb
Overview
An API client for Macie. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::Macie::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_member_account(params = {}) ⇒ Struct
Associates a specified AWS account with Amazon Macie Classic as a member account.
-
#associate_s3_resources(params = {}) ⇒ Types::AssociateS3ResourcesResult
Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification.
-
#disassociate_member_account(params = {}) ⇒ Struct
Removes the specified member account from Amazon Macie Classic.
-
#disassociate_s3_resources(params = {}) ⇒ Types::DisassociateS3ResourcesResult
Removes specified S3 resources from being monitored by Amazon Macie Classic.
-
#list_member_accounts(params = {}) ⇒ Types::ListMemberAccountsResult
Lists all Amazon Macie Classic member accounts for the current Amazon Macie Classic master account.
-
#list_s3_resources(params = {}) ⇒ Types::ListS3ResourcesResult
Lists all the S3 resources associated with Amazon Macie Classic.
-
#update_s3_resources(params = {}) ⇒ Types::UpdateS3ResourcesResult
Updates the classification types for the specified S3 resources.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
334 335 336 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 334 def initialize(*args) super end |
Instance Method Details
#associate_member_account(params = {}) ⇒ Struct
Associates a specified AWS account with Amazon Macie Classic as a member account.
359 360 361 362 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 359 def associate_member_account(params = {}, = {}) req = build_request(:associate_member_account, params) req.send_request() end |
#associate_s3_resources(params = {}) ⇒ Types::AssociateS3ResourcesResult
Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie Classic for the current master account. If memberAccountId is specified, the action associates specified S3 resources with Macie Classic for the specified member account.
411 412 413 414 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 411 def associate_s3_resources(params = {}, = {}) req = build_request(:associate_s3_resources, params) req.send_request() end |
#disassociate_member_account(params = {}) ⇒ Struct
Removes the specified member account from Amazon Macie Classic.
434 435 436 437 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 434 def disassociate_member_account(params = {}, = {}) req = build_request(:disassociate_member_account, params) req.send_request() end |
#disassociate_s3_resources(params = {}) ⇒ Types::DisassociateS3ResourcesResult
Removes specified S3 resources from being monitored by Amazon Macie Classic. If memberAccountId isn't specified, the action removes specified S3 resources from Macie Classic for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie Classic for the specified member account.
481 482 483 484 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 481 def disassociate_s3_resources(params = {}, = {}) req = build_request(:disassociate_s3_resources, params) req.send_request() end |
#list_member_accounts(params = {}) ⇒ Types::ListMemberAccountsResult
Lists all Amazon Macie Classic member accounts for the current Amazon Macie Classic master account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
524 525 526 527 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 524 def list_member_accounts(params = {}, = {}) req = build_request(:list_member_accounts, params) req.send_request() end |
#list_s3_resources(params = {}) ⇒ Types::ListS3ResourcesResult
Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Amazon Macie Classic for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie Classic for the specified member account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
577 578 579 580 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 577 def list_s3_resources(params = {}, = {}) req = build_request(:list_s3_resources, params) req.send_request() end |
#update_s3_resources(params = {}) ⇒ Types::UpdateS3ResourcesResult
Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the current master account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the specified member account.
629 630 631 632 |
# File 'gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb', line 629 def update_s3_resources(params = {}, = {}) req = build_request(:update_s3_resources, params) req.send_request() end |