Class: Aws::SecurityLake::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::SecurityLake::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb
Overview
An API client for SecurityLake. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::SecurityLake::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
-
#create_aws_log_source(params = {}) ⇒ Types::CreateAwsLogSourceResponse
Adds a natively supported Amazon Web Service as an Amazon Security Lake source.
-
#create_custom_log_source(params = {}) ⇒ Types::CreateCustomLogSourceResponse
Adds a third-party custom source in Amazon Security Lake, from the Amazon Web Services Region where you want to create a custom source.
-
#create_data_lake(params = {}) ⇒ Types::CreateDataLakeResponse
Initializes an Amazon Security Lake instance with the provided (or default) configuration.
-
#create_data_lake_exception_subscription(params = {}) ⇒ Struct
Creates the specified notification subscription in Amazon Security Lake for the organization you specify.
-
#create_data_lake_organization_configuration(params = {}) ⇒ Struct
Automatically enables Amazon Security Lake for new member accounts in your organization.
-
#create_subscriber(params = {}) ⇒ Types::CreateSubscriberResponse
Creates a subscription permission for accounts that are already enabled in Amazon Security Lake.
-
#create_subscriber_notification(params = {}) ⇒ Types::CreateSubscriberNotificationResponse
Notifies the subscriber when new data is written to the data lake for the sources that the subscriber consumes in Security Lake.
-
#delete_aws_log_source(params = {}) ⇒ Types::DeleteAwsLogSourceResponse
Removes a natively supported Amazon Web Service as an Amazon Security Lake source.
-
#delete_custom_log_source(params = {}) ⇒ Struct
Removes a custom log source from Amazon Security Lake, to stop sending data from the custom source to Security Lake.
-
#delete_data_lake(params = {}) ⇒ Struct
When you disable Amazon Security Lake from your account, Security Lake is disabled in all Amazon Web Services Regions and it stops collecting data from your sources.
-
#delete_data_lake_exception_subscription(params = {}) ⇒ Struct
Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.
-
#delete_data_lake_organization_configuration(params = {}) ⇒ Struct
Turns off automatic enablement of Amazon Security Lake for member accounts that are added to an organization in Organizations.
-
#delete_subscriber(params = {}) ⇒ Struct
Deletes the subscription permission and all notification settings for accounts that are already enabled in Amazon Security Lake.
-
#delete_subscriber_notification(params = {}) ⇒ Struct
Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.
-
#deregister_data_lake_delegated_administrator(params = {}) ⇒ Struct
Deletes the Amazon Security Lake delegated administrator account for the organization.
-
#get_data_lake_exception_subscription(params = {}) ⇒ Types::GetDataLakeExceptionSubscriptionResponse
Retrieves the details of exception notifications for the account in Amazon Security Lake.
-
#get_data_lake_organization_configuration(params = {}) ⇒ Types::GetDataLakeOrganizationConfigurationResponse
Retrieves the configuration that will be automatically set up for accounts added to the organization after the organization has onboarded to Amazon Security Lake.
-
#get_data_lake_sources(params = {}) ⇒ Types::GetDataLakeSourcesResponse
Retrieves a snapshot of the current Region, including whether Amazon Security Lake is enabled for those accounts and which sources Security Lake is collecting data from.
-
#get_subscriber(params = {}) ⇒ Types::GetSubscriberResponse
Retrieves the subscription information for the specified subscription ID.
-
#list_data_lake_exceptions(params = {}) ⇒ Types::ListDataLakeExceptionsResponse
Lists the Amazon Security Lake exceptions that you can use to find the source of problems and fix them.
-
#list_data_lakes(params = {}) ⇒ Types::ListDataLakesResponse
Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services Regions.
-
#list_log_sources(params = {}) ⇒ Types::ListLogSourcesResponse
Retrieves the log sources in the current Amazon Web Services Region.
-
#list_subscribers(params = {}) ⇒ Types::ListSubscribersResponse
List all subscribers for the specific Amazon Security Lake account ID.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves the tags (keys and values) that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region.
-
#register_data_lake_delegated_administrator(params = {}) ⇒ Struct
Designates the Amazon Security Lake delegated administrator account for the organization.
-
#tag_resource(params = {}) ⇒ Struct
Adds or updates one or more tags that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags (keys and values) from an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region.
-
#update_data_lake(params = {}) ⇒ Types::UpdateDataLakeResponse
Specifies where to store your security data and for how long.
-
#update_data_lake_exception_subscription(params = {}) ⇒ Struct
Updates the specified notification subscription in Amazon Security Lake for the organization you specify.
-
#update_subscriber(params = {}) ⇒ Types::UpdateSubscriberResponse
Updates an existing subscription for the given Amazon Security Lake account ID.
-
#update_subscriber_notification(params = {}) ⇒ Types::UpdateSubscriberNotificationResponse
Updates an existing notification method for the subscription (SQS or HTTPs endpoint) or switches the notification subscription endpoint for a subscriber.
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.
440 441 442 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 440 def initialize(*args) super end |
Instance Method Details
#create_aws_log_source(params = {}) ⇒ Types::CreateAwsLogSourceResponse
Adds a natively supported Amazon Web Service as an Amazon Security Lake source. Enables source types for member accounts in required Amazon Web Services Regions, based on the parameters you specify. You can choose any source type in any Region for either accounts that are part of a trusted organization or standalone accounts. Once you add an Amazon Web Service as a source, Security Lake starts collecting logs and events from it.
You can use this API only to enable natively supported Amazon Web
Services as a source. Use CreateCustomLogSource
to enable data
collection from a custom source.
488 489 490 491 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 488 def create_aws_log_source(params = {}, = {}) req = build_request(:create_aws_log_source, params) req.send_request() end |
#create_custom_log_source(params = {}) ⇒ Types::CreateCustomLogSourceResponse
Adds a third-party custom source in Amazon Security Lake, from the Amazon Web Services Region where you want to create a custom source. Security Lake can collect logs and events from third-party custom sources. After creating the appropriate IAM role to invoke Glue crawler, use this API to add a custom source name in Security Lake. This operation creates a partition in the Amazon S3 bucket for Security Lake as the target location for log files from the custom source. In addition, this operation also creates an associated Glue table and an Glue crawler.
612 613 614 615 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 612 def create_custom_log_source(params = {}, = {}) req = build_request(:create_custom_log_source, params) req.send_request() end |
#create_data_lake(params = {}) ⇒ Types::CreateDataLakeResponse
Initializes an Amazon Security Lake instance with the provided (or
default) configuration. You can enable Security Lake in Amazon Web
Services Regions with customized settings before enabling log
collection in Regions. To specify particular Regions, configure these
Regions using the configurations
parameter. If you have already
enabled Security Lake in a Region when you call this command, the
command will update the Region if you provide new configuration
parameters. If you have not already enabled Security Lake in the
Region when you call this API, it will set up the data lake in the
Region with the specified configurations.
When you enable Security Lake, it starts ingesting security data after
the CreateAwsLogSource
call. This includes ingesting security data
from sources, storing data, and making data accessible to subscribers.
Security Lake also enables all the existing settings and resources
that it stores or maintains for your Amazon Web Services account in
the current Region, including security log and event data. For more
information, see the Amazon Security Lake User Guide.
717 718 719 720 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 717 def create_data_lake(params = {}, = {}) req = build_request(:create_data_lake, params) req.send_request() end |
#create_data_lake_exception_subscription(params = {}) ⇒ Struct
Creates the specified notification subscription in Amazon Security Lake for the organization you specify.
749 750 751 752 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 749 def create_data_lake_exception_subscription(params = {}, = {}) req = build_request(:create_data_lake_exception_subscription, params) req.send_request() end |
#create_data_lake_organization_configuration(params = {}) ⇒ Struct
Automatically enables Amazon Security Lake for new member accounts in your organization. Security Lake is not automatically enabled for any existing member accounts in your organization.
784 785 786 787 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 784 def create_data_lake_organization_configuration(params = {}, = {}) req = build_request(:create_data_lake_organization_configuration, params) req.send_request() end |
#create_subscriber(params = {}) ⇒ Types::CreateSubscriberResponse
Creates a subscription permission for accounts that are already enabled in Amazon Security Lake. You can create a subscriber with access to data in the current Amazon Web Services Region.
891 892 893 894 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 891 def create_subscriber(params = {}, = {}) req = build_request(:create_subscriber, params) req.send_request() end |
#create_subscriber_notification(params = {}) ⇒ Types::CreateSubscriberNotificationResponse
Notifies the subscriber when new data is written to the data lake for the sources that the subscriber consumes in Security Lake. You can create only one subscriber notification per subscriber.
936 937 938 939 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 936 def create_subscriber_notification(params = {}, = {}) req = build_request(:create_subscriber_notification, params) req.send_request() end |
#delete_aws_log_source(params = {}) ⇒ Types::DeleteAwsLogSourceResponse
Removes a natively supported Amazon Web Service as an Amazon Security Lake source. You can remove a source for one or more Regions. When you remove the source, Security Lake stops collecting data from that source in the specified Regions and accounts, and subscribers can no longer consume new data from the source. However, subscribers can still consume data that Security Lake collected from the source before removal.
You can choose any source type in any Amazon Web Services Region for either accounts that are part of a trusted organization or standalone accounts.
983 984 985 986 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 983 def delete_aws_log_source(params = {}, = {}) req = build_request(:delete_aws_log_source, params) req.send_request() end |
#delete_custom_log_source(params = {}) ⇒ Struct
Removes a custom log source from Amazon Security Lake, to stop sending data from the custom source to Security Lake.
1011 1012 1013 1014 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1011 def delete_custom_log_source(params = {}, = {}) req = build_request(:delete_custom_log_source, params) req.send_request() end |
#delete_data_lake(params = {}) ⇒ Struct
When you disable Amazon Security Lake from your account, Security Lake is disabled in all Amazon Web Services Regions and it stops collecting data from your sources. Also, this API automatically takes steps to remove the account from Security Lake. However, Security Lake retains all of your existing settings and the resources that it created in your Amazon Web Services account in the current Amazon Web Services Region.
The DeleteDataLake
operation does not delete the data that is stored
in your Amazon S3 bucket, which is owned by your Amazon Web Services
account. For more information, see the Amazon Security Lake User
Guide.
1048 1049 1050 1051 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1048 def delete_data_lake(params = {}, = {}) req = build_request(:delete_data_lake, params) req.send_request() end |
#delete_data_lake_exception_subscription(params = {}) ⇒ Struct
Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.
1062 1063 1064 1065 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1062 def delete_data_lake_exception_subscription(params = {}, = {}) req = build_request(:delete_data_lake_exception_subscription, params) req.send_request() end |
#delete_data_lake_organization_configuration(params = {}) ⇒ Struct
Turns off automatic enablement of Amazon Security Lake for member accounts that are added to an organization in Organizations. Only the delegated Security Lake administrator for an organization can perform this operation. If the delegated Security Lake administrator performs this operation, new member accounts won't automatically contribute data to the data lake.
1100 1101 1102 1103 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1100 def delete_data_lake_organization_configuration(params = {}, = {}) req = build_request(:delete_data_lake_organization_configuration, params) req.send_request() end |
#delete_subscriber(params = {}) ⇒ Struct
Deletes the subscription permission and all notification settings for
accounts that are already enabled in Amazon Security Lake. When you
run DeleteSubscriber
, the subscriber will no longer consume data
from Security Lake and the subscriber is removed. This operation
deletes the subscriber and removes access to data in the current
Amazon Web Services Region.
1128 1129 1130 1131 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1128 def delete_subscriber(params = {}, = {}) req = build_request(:delete_subscriber, params) req.send_request() end |
#delete_subscriber_notification(params = {}) ⇒ Struct
Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.
1151 1152 1153 1154 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1151 def delete_subscriber_notification(params = {}, = {}) req = build_request(:delete_subscriber_notification, params) req.send_request() end |
#deregister_data_lake_delegated_administrator(params = {}) ⇒ Struct
Deletes the Amazon Security Lake delegated administrator account for the organization. This API can only be called by the organization management account. The organization management account cannot be the delegated administrator account.
1167 1168 1169 1170 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1167 def deregister_data_lake_delegated_administrator(params = {}, = {}) req = build_request(:deregister_data_lake_delegated_administrator, params) req.send_request() end |
#get_data_lake_exception_subscription(params = {}) ⇒ Types::GetDataLakeExceptionSubscriptionResponse
Retrieves the details of exception notifications for the account in Amazon Security Lake.
1191 1192 1193 1194 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1191 def get_data_lake_exception_subscription(params = {}, = {}) req = build_request(:get_data_lake_exception_subscription, params) req.send_request() end |
#get_data_lake_organization_configuration(params = {}) ⇒ Types::GetDataLakeOrganizationConfigurationResponse
Retrieves the configuration that will be automatically set up for accounts added to the organization after the organization has onboarded to Amazon Security Lake. This API does not take input parameters.
1217 1218 1219 1220 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1217 def get_data_lake_organization_configuration(params = {}, = {}) req = build_request(:get_data_lake_organization_configuration, params) req.send_request() end |
#get_data_lake_sources(params = {}) ⇒ Types::GetDataLakeSourcesResponse
Retrieves a snapshot of the current Region, including whether Amazon Security Lake is enabled for those accounts and which sources Security Lake is collecting data from.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1278 1279 1280 1281 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1278 def get_data_lake_sources(params = {}, = {}) req = build_request(:get_data_lake_sources, params) req.send_request() end |
#get_subscriber(params = {}) ⇒ Types::GetSubscriberResponse
Retrieves the subscription information for the specified subscription ID. You can get information about a specific subscriber.
1333 1334 1335 1336 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1333 def get_subscriber(params = {}, = {}) req = build_request(:get_subscriber, params) req.send_request() end |
#list_data_lake_exceptions(params = {}) ⇒ Types::ListDataLakeExceptionsResponse
Lists the Amazon Security Lake exceptions that you can use to find the source of problems and fix them.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1384 1385 1386 1387 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1384 def list_data_lake_exceptions(params = {}, = {}) req = build_request(:list_data_lake_exceptions, params) req.send_request() end |
#list_data_lakes(params = {}) ⇒ Types::ListDataLakesResponse
Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services Regions. You can use this operation to determine whether Security Lake is enabled for a Region.
1430 1431 1432 1433 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1430 def list_data_lakes(params = {}, = {}) req = build_request(:list_data_lakes, params) req.send_request() end |
#list_log_sources(params = {}) ⇒ Types::ListLogSourcesResponse
Retrieves the log sources in the current Amazon Web Services Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1513 1514 1515 1516 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1513 def list_log_sources(params = {}, = {}) req = build_request(:list_log_sources, params) req.send_request() end |
#list_subscribers(params = {}) ⇒ Types::ListSubscribersResponse
List all subscribers for the specific Amazon Security Lake account ID. You can retrieve a list of subscriptions associated with a specific organization or Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1579 1580 1581 1582 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1579 def list_subscribers(params = {}, = {}) req = build_request(:list_subscribers, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves the tags (keys and values) that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region.
1613 1614 1615 1616 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1613 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#register_data_lake_delegated_administrator(params = {}) ⇒ Struct
Designates the Amazon Security Lake delegated administrator account for the organization. This API can only be called by the organization management account. The organization management account cannot be the delegated administrator account.
1639 1640 1641 1642 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1639 def register_data_lake_delegated_administrator(params = {}, = {}) req = build_request(:register_data_lake_delegated_administrator, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates one or more tags that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region. A tag is a label that you can define and associate with Amazon Web Services resources. Each tag consists of a required tag key and an associated tag value. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor for a tag key. Tags can help you identify, categorize, and manage resources in different ways, such as by owner, environment, or other criteria. For more information, see Tagging Amazon Security Lake resources in the Amazon Security Lake User Guide.
1689 1690 1691 1692 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1689 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags (keys and values) from an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region.
1721 1722 1723 1724 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1721 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_data_lake(params = {}) ⇒ Types::UpdateDataLakeResponse
Specifies where to store your security data and for how long. You can add a rollup Region to consolidate data from multiple Amazon Web Services Regions.
1796 1797 1798 1799 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1796 def update_data_lake(params = {}, = {}) req = build_request(:update_data_lake, params) req.send_request() end |
#update_data_lake_exception_subscription(params = {}) ⇒ Struct
Updates the specified notification subscription in Amazon Security Lake for the organization you specify.
1827 1828 1829 1830 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1827 def update_data_lake_exception_subscription(params = {}, = {}) req = build_request(:update_data_lake_exception_subscription, params) req.send_request() end |
#update_subscriber(params = {}) ⇒ Types::UpdateSubscriberResponse
Updates an existing subscription for the given Amazon Security Lake account ID. You can update a subscriber by changing the sources that the subscriber consumes data from.
1928 1929 1930 1931 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1928 def update_subscriber(params = {}, = {}) req = build_request(:update_subscriber, params) req.send_request() end |
#update_subscriber_notification(params = {}) ⇒ Types::UpdateSubscriberNotificationResponse
Updates an existing notification method for the subscription (SQS or HTTPs endpoint) or switches the notification subscription endpoint for a subscriber.
1973 1974 1975 1976 |
# File 'gems/aws-sdk-securitylake/lib/aws-sdk-securitylake/client.rb', line 1973 def update_subscriber_notification(params = {}, = {}) req = build_request(:update_subscriber_notification, params) req.send_request() end |