Class: Aws::Macie::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Macie::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_member_account(params = {}) ⇒ Struct
(Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.
-
#associate_s3_resources(params = {}) ⇒ Types::AssociateS3ResourcesResult
(Discontinued) Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification.
-
#disassociate_member_account(params = {}) ⇒ Struct
(Discontinued) Removes the specified member account from Amazon Macie Classic.
-
#disassociate_s3_resources(params = {}) ⇒ Types::DisassociateS3ResourcesResult
(Discontinued) Removes specified S3 resources from being monitored by Amazon Macie Classic.
-
#list_member_accounts(params = {}) ⇒ Types::ListMemberAccountsResult
(Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
-
#list_s3_resources(params = {}) ⇒ Types::ListS3ResourcesResult
(Discontinued) Lists all the S3 resources associated with Amazon Macie Classic.
-
#update_s3_resources(params = {}) ⇒ Types::UpdateS3ResourcesResult
(Discontinued) Updates the classification types for the specified S3 resources.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
395 396 397 |
# File 'lib/aws-sdk-macie/client.rb', line 395 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
727 728 729 |
# File 'lib/aws-sdk-macie/client.rb', line 727 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
730 731 732 |
# File 'lib/aws-sdk-macie/client.rb', line 730 def errors_module Errors end |
Instance Method Details
#associate_member_account(params = {}) ⇒ Struct
(Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.
420 421 422 423 |
# File 'lib/aws-sdk-macie/client.rb', line 420 def associate_member_account(params = {}, = {}) req = build_request(:associate_member_account, params) req.send_request() end |
#associate_s3_resources(params = {}) ⇒ Types::AssociateS3ResourcesResult
(Discontinued) 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 Macie Classic administrator account. If ‘memberAccountId` is specified, the action associates specified S3 resources with Macie Classic for the specified member account.
472 473 474 475 |
# File 'lib/aws-sdk-macie/client.rb', line 472 def associate_s3_resources(params = {}, = {}) req = build_request(:associate_s3_resources, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
705 706 707 708 709 710 711 712 713 714 715 716 |
# File 'lib/aws-sdk-macie/client.rb', line 705 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-macie' context[:gem_version] = '1.48.0' Seahorse::Client::Request.new(handlers, context) end |
#disassociate_member_account(params = {}) ⇒ Struct
(Discontinued) Removes the specified member account from Amazon Macie Classic.
496 497 498 499 |
# File 'lib/aws-sdk-macie/client.rb', line 496 def disassociate_member_account(params = {}, = {}) req = build_request(:disassociate_member_account, params) req.send_request() end |
#disassociate_s3_resources(params = {}) ⇒ Types::DisassociateS3ResourcesResult
(Discontinued) 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 Macie Classic administrator account. If ‘memberAccountId` is specified, the action removes specified S3 resources from Macie Classic for the specified member account.
544 545 546 547 |
# File 'lib/aws-sdk-macie/client.rb', line 544 def disassociate_s3_resources(params = {}, = {}) req = build_request(:disassociate_s3_resources, params) req.send_request() end |
#list_member_accounts(params = {}) ⇒ Types::ListMemberAccountsResult
(Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
587 588 589 590 |
# File 'lib/aws-sdk-macie/client.rb', line 587 def list_member_accounts(params = {}, = {}) req = build_request(:list_member_accounts, params) req.send_request() end |
#list_s3_resources(params = {}) ⇒ Types::ListS3ResourcesResult
(Discontinued) Lists all the S3 resources associated with Amazon Macie Classic. If ‘memberAccountId` isn’t specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If ‘memberAccountId` is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
642 643 644 645 |
# File 'lib/aws-sdk-macie/client.rb', line 642 def list_s3_resources(params = {}, = {}) req = build_request(:list_s3_resources, params) req.send_request() end |
#update_s3_resources(params = {}) ⇒ Types::UpdateS3ResourcesResult
(Discontinued) 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 Macie Classic administrator account. If ‘memberAccountId` is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account.
696 697 698 699 |
# File 'lib/aws-sdk-macie/client.rb', line 696 def update_s3_resources(params = {}, = {}) req = build_request(:update_s3_resources, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
720 721 722 |
# File 'lib/aws-sdk-macie/client.rb', line 720 def waiter_names [] end |