SecurityLakeClient#
Index > SecurityLake > SecurityLakeClient
Auto-generated documentation for SecurityLake type annotations stubs module types-aiobotocore-securitylake.
SecurityLakeClient#
Type annotations and code completion for session.create_client("securitylake")
boto3 documentation
SecurityLakeClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_securitylake.client import SecurityLakeClient
session = get_session()
async with session.create_client("securitylake") as client:
client: SecurityLakeClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("securitylake").exceptions
structure.
SecurityLakeClient.exceptions usage example
async with session.create_client("securitylake") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.BadRequestException,
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ThrottlingException,
) as e:
print(e)
SecurityLakeClient usage type checking example
from types_aiobotocore_securitylake.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for session.create_client("securitylake").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for session.create_client("securitylake").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
create_aws_log_source#
Adds a natively supported Amazon Web Service as an Amazon Security Lake source.
Type annotations and code completion for session.create_client("securitylake").create_aws_log_source
method.
boto3 documentation
# create_aws_log_source method definition
await def create_aws_log_source(
self,
*,
sources: Sequence[AwsLogSourceConfigurationTypeDef], # (1)
) -> CreateAwsLogSourceResponseTypeDef: # (2)
...
# create_aws_log_source method usage example with argument unpacking
kwargs: CreateAwsLogSourceRequestRequestTypeDef = { # (1)
"sources": ...,
}
parent.create_aws_log_source(**kwargs)
create_custom_log_source#
Adds a third-party custom source in Amazon Security Lake, from the Amazon Web Services Region where you want to create a custom source.
Type annotations and code completion for session.create_client("securitylake").create_custom_log_source
method.
boto3 documentation
# create_custom_log_source method definition
await def create_custom_log_source(
self,
*,
sourceName: str,
configuration: CustomLogSourceConfigurationTypeDef = ..., # (1)
eventClasses: Sequence[str] = ...,
sourceVersion: str = ...,
) -> CreateCustomLogSourceResponseTypeDef: # (2)
...
# create_custom_log_source method usage example with argument unpacking
kwargs: CreateCustomLogSourceRequestRequestTypeDef = { # (1)
"sourceName": ...,
}
parent.create_custom_log_source(**kwargs)
create_data_lake#
Initializes an Amazon Security Lake instance with the provided (or default) configuration.
Type annotations and code completion for session.create_client("securitylake").create_data_lake
method.
boto3 documentation
# create_data_lake method definition
await def create_data_lake(
self,
*,
configurations: Sequence[DataLakeConfigurationTypeDef], # (1)
metaStoreManagerRoleArn: str,
tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateDataLakeResponseTypeDef: # (3)
...
# create_data_lake method usage example with argument unpacking
kwargs: CreateDataLakeRequestRequestTypeDef = { # (1)
"configurations": ...,
"metaStoreManagerRoleArn": ...,
}
parent.create_data_lake(**kwargs)
create_data_lake_exception_subscription#
Creates the specified notification subscription in Amazon Security Lake for the organization you specify.
Type annotations and code completion for session.create_client("securitylake").create_data_lake_exception_subscription
method.
boto3 documentation
# create_data_lake_exception_subscription method definition
await def create_data_lake_exception_subscription(
self,
*,
notificationEndpoint: str,
subscriptionProtocol: str,
exceptionTimeToLive: int = ...,
) -> Dict[str, Any]:
...
# create_data_lake_exception_subscription method usage example with argument unpacking
kwargs: CreateDataLakeExceptionSubscriptionRequestRequestTypeDef = { # (1)
"notificationEndpoint": ...,
"subscriptionProtocol": ...,
}
parent.create_data_lake_exception_subscription(**kwargs)
create_data_lake_organization_configuration#
Automatically enables Amazon Security Lake for new member accounts in your organization.
Type annotations and code completion for session.create_client("securitylake").create_data_lake_organization_configuration
method.
boto3 documentation
# create_data_lake_organization_configuration method definition
await def create_data_lake_organization_configuration(
self,
*,
autoEnableNewAccount: Sequence[DataLakeAutoEnableNewAccountConfigurationTypeDef], # (1)
) -> Dict[str, Any]:
...
# create_data_lake_organization_configuration method usage example with argument unpacking
kwargs: CreateDataLakeOrganizationConfigurationRequestRequestTypeDef = { # (1)
"autoEnableNewAccount": ...,
}
parent.create_data_lake_organization_configuration(**kwargs)
create_subscriber#
Creates a subscription permission for accounts that are already enabled in Amazon Security Lake.
Type annotations and code completion for session.create_client("securitylake").create_subscriber
method.
boto3 documentation
# create_subscriber method definition
await def create_subscriber(
self,
*,
sources: Sequence[LogSourceResourceTypeDef], # (1)
subscriberIdentity: AwsIdentityTypeDef, # (2)
subscriberName: str,
accessTypes: Sequence[AccessTypeType] = ..., # (3)
subscriberDescription: str = ...,
tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateSubscriberResponseTypeDef: # (5)
...
- See LogSourceResourceTypeDef
- See AwsIdentityTypeDef
- See AccessTypeType
- See TagTypeDef
- See CreateSubscriberResponseTypeDef
# create_subscriber method usage example with argument unpacking
kwargs: CreateSubscriberRequestRequestTypeDef = { # (1)
"sources": ...,
"subscriberIdentity": ...,
"subscriberName": ...,
}
parent.create_subscriber(**kwargs)
create_subscriber_notification#
Notifies the subscriber when new data is written to the data lake for the sources that the subscriber consumes in Security Lake.
Type annotations and code completion for session.create_client("securitylake").create_subscriber_notification
method.
boto3 documentation
# create_subscriber_notification method definition
await def create_subscriber_notification(
self,
*,
configuration: NotificationConfigurationTypeDef, # (1)
subscriberId: str,
) -> CreateSubscriberNotificationResponseTypeDef: # (2)
...
# create_subscriber_notification method usage example with argument unpacking
kwargs: CreateSubscriberNotificationRequestRequestTypeDef = { # (1)
"configuration": ...,
"subscriberId": ...,
}
parent.create_subscriber_notification(**kwargs)
delete_aws_log_source#
Removes a natively supported Amazon Web Service as an Amazon Security Lake source.
Type annotations and code completion for session.create_client("securitylake").delete_aws_log_source
method.
boto3 documentation
# delete_aws_log_source method definition
await def delete_aws_log_source(
self,
*,
sources: Sequence[AwsLogSourceConfigurationTypeDef], # (1)
) -> DeleteAwsLogSourceResponseTypeDef: # (2)
...
# delete_aws_log_source method usage example with argument unpacking
kwargs: DeleteAwsLogSourceRequestRequestTypeDef = { # (1)
"sources": ...,
}
parent.delete_aws_log_source(**kwargs)
delete_custom_log_source#
Removes a custom log source from Amazon Security Lake, to stop sending data from the custom source to Security Lake.
Type annotations and code completion for session.create_client("securitylake").delete_custom_log_source
method.
boto3 documentation
# delete_custom_log_source method definition
await def delete_custom_log_source(
self,
*,
sourceName: str,
sourceVersion: str = ...,
) -> Dict[str, Any]:
...
# delete_custom_log_source method usage example with argument unpacking
kwargs: DeleteCustomLogSourceRequestRequestTypeDef = { # (1)
"sourceName": ...,
}
parent.delete_custom_log_source(**kwargs)
delete_data_lake#
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.
Type annotations and code completion for session.create_client("securitylake").delete_data_lake
method.
boto3 documentation
# delete_data_lake method definition
await def delete_data_lake(
self,
*,
regions: Sequence[str],
) -> Dict[str, Any]:
...
# delete_data_lake method usage example with argument unpacking
kwargs: DeleteDataLakeRequestRequestTypeDef = { # (1)
"regions": ...,
}
parent.delete_data_lake(**kwargs)
delete_data_lake_exception_subscription#
Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.
Type annotations and code completion for session.create_client("securitylake").delete_data_lake_exception_subscription
method.
boto3 documentation
# delete_data_lake_exception_subscription method definition
await def delete_data_lake_exception_subscription(
self,
) -> Dict[str, Any]:
...
delete_data_lake_organization_configuration#
Turns off automatic enablement of Amazon Security Lake for member accounts that are added to an organization in Organizations.
Type annotations and code completion for session.create_client("securitylake").delete_data_lake_organization_configuration
method.
boto3 documentation
# delete_data_lake_organization_configuration method definition
await def delete_data_lake_organization_configuration(
self,
*,
autoEnableNewAccount: Sequence[DataLakeAutoEnableNewAccountConfigurationTypeDef], # (1)
) -> Dict[str, Any]:
...
# delete_data_lake_organization_configuration method usage example with argument unpacking
kwargs: DeleteDataLakeOrganizationConfigurationRequestRequestTypeDef = { # (1)
"autoEnableNewAccount": ...,
}
parent.delete_data_lake_organization_configuration(**kwargs)
delete_subscriber#
Deletes the subscription permission and all notification settings for accounts that are already enabled in Amazon Security Lake.
Type annotations and code completion for session.create_client("securitylake").delete_subscriber
method.
boto3 documentation
# delete_subscriber method definition
await def delete_subscriber(
self,
*,
subscriberId: str,
) -> Dict[str, Any]:
...
# delete_subscriber method usage example with argument unpacking
kwargs: DeleteSubscriberRequestRequestTypeDef = { # (1)
"subscriberId": ...,
}
parent.delete_subscriber(**kwargs)
delete_subscriber_notification#
Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.
Type annotations and code completion for session.create_client("securitylake").delete_subscriber_notification
method.
boto3 documentation
# delete_subscriber_notification method definition
await def delete_subscriber_notification(
self,
*,
subscriberId: str,
) -> Dict[str, Any]:
...
# delete_subscriber_notification method usage example with argument unpacking
kwargs: DeleteSubscriberNotificationRequestRequestTypeDef = { # (1)
"subscriberId": ...,
}
parent.delete_subscriber_notification(**kwargs)
deregister_data_lake_delegated_administrator#
Deletes the Amazon Security Lake delegated administrator account for the organization.
Type annotations and code completion for session.create_client("securitylake").deregister_data_lake_delegated_administrator
method.
boto3 documentation
# deregister_data_lake_delegated_administrator method definition
await def deregister_data_lake_delegated_administrator(
self,
) -> Dict[str, Any]:
...
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("securitylake").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_data_lake_exception_subscription#
Retrieves the details of exception notifications for the account in Amazon Security Lake.
Type annotations and code completion for session.create_client("securitylake").get_data_lake_exception_subscription
method.
boto3 documentation
# get_data_lake_exception_subscription method definition
await def get_data_lake_exception_subscription(
self,
) -> GetDataLakeExceptionSubscriptionResponseTypeDef: # (1)
...
get_data_lake_organization_configuration#
Retrieves the configuration that will be automatically set up for accounts added to the organization after the organization has onboarded to Amazon Security Lake.
Type annotations and code completion for session.create_client("securitylake").get_data_lake_organization_configuration
method.
boto3 documentation
# get_data_lake_organization_configuration method definition
await def get_data_lake_organization_configuration(
self,
) -> GetDataLakeOrganizationConfigurationResponseTypeDef: # (1)
...
get_data_lake_sources#
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.
Type annotations and code completion for session.create_client("securitylake").get_data_lake_sources
method.
boto3 documentation
# get_data_lake_sources method definition
await def get_data_lake_sources(
self,
*,
accounts: Sequence[str] = ...,
maxResults: int = ...,
nextToken: str = ...,
) -> GetDataLakeSourcesResponseTypeDef: # (1)
...
# get_data_lake_sources method usage example with argument unpacking
kwargs: GetDataLakeSourcesRequestRequestTypeDef = { # (1)
"accounts": ...,
}
parent.get_data_lake_sources(**kwargs)
get_subscriber#
Retrieves the subscription information for the specified subscription ID.
Type annotations and code completion for session.create_client("securitylake").get_subscriber
method.
boto3 documentation
# get_subscriber method definition
await def get_subscriber(
self,
*,
subscriberId: str,
) -> GetSubscriberResponseTypeDef: # (1)
...
# get_subscriber method usage example with argument unpacking
kwargs: GetSubscriberRequestRequestTypeDef = { # (1)
"subscriberId": ...,
}
parent.get_subscriber(**kwargs)
list_data_lake_exceptions#
Lists the Amazon Security Lake exceptions that you can use to find the source of problems and fix them.
Type annotations and code completion for session.create_client("securitylake").list_data_lake_exceptions
method.
boto3 documentation
# list_data_lake_exceptions method definition
await def list_data_lake_exceptions(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
regions: Sequence[str] = ...,
) -> ListDataLakeExceptionsResponseTypeDef: # (1)
...
# list_data_lake_exceptions method usage example with argument unpacking
kwargs: ListDataLakeExceptionsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_data_lake_exceptions(**kwargs)
list_data_lakes#
Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services Regions.
Type annotations and code completion for session.create_client("securitylake").list_data_lakes
method.
boto3 documentation
# list_data_lakes method definition
await def list_data_lakes(
self,
*,
regions: Sequence[str] = ...,
) -> ListDataLakesResponseTypeDef: # (1)
...
# list_data_lakes method usage example with argument unpacking
kwargs: ListDataLakesRequestRequestTypeDef = { # (1)
"regions": ...,
}
parent.list_data_lakes(**kwargs)
list_log_sources#
Retrieves the log sources in the current Amazon Web Services Region.
Type annotations and code completion for session.create_client("securitylake").list_log_sources
method.
boto3 documentation
# list_log_sources method definition
await def list_log_sources(
self,
*,
accounts: Sequence[str] = ...,
maxResults: int = ...,
nextToken: str = ...,
regions: Sequence[str] = ...,
sources: Sequence[LogSourceResourceTypeDef] = ..., # (1)
) -> ListLogSourcesResponseTypeDef: # (2)
...
# list_log_sources method usage example with argument unpacking
kwargs: ListLogSourcesRequestRequestTypeDef = { # (1)
"accounts": ...,
}
parent.list_log_sources(**kwargs)
list_subscribers#
List all subscribers for the specific Amazon Security Lake account ID.
Type annotations and code completion for session.create_client("securitylake").list_subscribers
method.
boto3 documentation
# list_subscribers method definition
await def list_subscribers(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListSubscribersResponseTypeDef: # (1)
...
# list_subscribers method usage example with argument unpacking
kwargs: ListSubscribersRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_subscribers(**kwargs)
list_tags_for_resource#
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.
Type annotations and code completion for session.create_client("securitylake").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
await def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
register_data_lake_delegated_administrator#
Designates the Amazon Security Lake delegated administrator account for the organization.
Type annotations and code completion for session.create_client("securitylake").register_data_lake_delegated_administrator
method.
boto3 documentation
# register_data_lake_delegated_administrator method definition
await def register_data_lake_delegated_administrator(
self,
*,
accountId: str,
) -> Dict[str, Any]:
...
# register_data_lake_delegated_administrator method usage example with argument unpacking
kwargs: RegisterDataLakeDelegatedAdministratorRequestRequestTypeDef = { # (1)
"accountId": ...,
}
parent.register_data_lake_delegated_administrator(**kwargs)
tag_resource#
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.
Type annotations and code completion for session.create_client("securitylake").tag_resource
method.
boto3 documentation
# tag_resource method definition
await def tag_resource(
self,
*,
resourceArn: str,
tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
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.
Type annotations and code completion for session.create_client("securitylake").untag_resource
method.
boto3 documentation
# untag_resource method definition
await def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_data_lake#
Specifies where to store your security data and for how long.
Type annotations and code completion for session.create_client("securitylake").update_data_lake
method.
boto3 documentation
# update_data_lake method definition
await def update_data_lake(
self,
*,
configurations: Sequence[DataLakeConfigurationTypeDef], # (1)
) -> UpdateDataLakeResponseTypeDef: # (2)
...
# update_data_lake method usage example with argument unpacking
kwargs: UpdateDataLakeRequestRequestTypeDef = { # (1)
"configurations": ...,
}
parent.update_data_lake(**kwargs)
update_data_lake_exception_subscription#
Updates the specified notification subscription in Amazon Security Lake for the organization you specify.
Type annotations and code completion for session.create_client("securitylake").update_data_lake_exception_subscription
method.
boto3 documentation
# update_data_lake_exception_subscription method definition
await def update_data_lake_exception_subscription(
self,
*,
notificationEndpoint: str,
subscriptionProtocol: str,
exceptionTimeToLive: int = ...,
) -> Dict[str, Any]:
...
# update_data_lake_exception_subscription method usage example with argument unpacking
kwargs: UpdateDataLakeExceptionSubscriptionRequestRequestTypeDef = { # (1)
"notificationEndpoint": ...,
"subscriptionProtocol": ...,
}
parent.update_data_lake_exception_subscription(**kwargs)
update_subscriber#
Updates an existing subscription for the given Amazon Security Lake account ID.
Type annotations and code completion for session.create_client("securitylake").update_subscriber
method.
boto3 documentation
# update_subscriber method definition
await def update_subscriber(
self,
*,
subscriberId: str,
sources: Sequence[LogSourceResourceTypeDef] = ..., # (1)
subscriberDescription: str = ...,
subscriberIdentity: AwsIdentityTypeDef = ..., # (2)
subscriberName: str = ...,
) -> UpdateSubscriberResponseTypeDef: # (3)
...
# update_subscriber method usage example with argument unpacking
kwargs: UpdateSubscriberRequestRequestTypeDef = { # (1)
"subscriberId": ...,
}
parent.update_subscriber(**kwargs)
update_subscriber_notification#
Updates an existing notification method for the subscription (SQS or HTTPs endpoint) or switches the notification subscription endpoint for a subscriber.
Type annotations and code completion for session.create_client("securitylake").update_subscriber_notification
method.
boto3 documentation
# update_subscriber_notification method definition
await def update_subscriber_notification(
self,
*,
configuration: NotificationConfigurationTypeDef, # (1)
subscriberId: str,
) -> UpdateSubscriberNotificationResponseTypeDef: # (2)
...
# update_subscriber_notification method usage example with argument unpacking
kwargs: UpdateSubscriberNotificationRequestRequestTypeDef = { # (1)
"configuration": ...,
"subscriberId": ...,
}
parent.update_subscriber_notification(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("securitylake").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> SecurityLakeClient:
...
__aexit__#
Type annotations and code completion for session.create_client("securitylake").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...
get_paginator#
Type annotations and code completion for session.create_client("securitylake").get_paginator
method with overloads.
client.get_paginator("get_data_lake_sources")
-> GetDataLakeSourcesPaginatorclient.get_paginator("list_data_lake_exceptions")
-> ListDataLakeExceptionsPaginatorclient.get_paginator("list_log_sources")
-> ListLogSourcesPaginatorclient.get_paginator("list_subscribers")
-> ListSubscribersPaginator